Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<a href="#" onclick="<?php insertfunc(); ?>">Изпълни</a>
function insertfunc() {
$neshto = "ne6tosi";
$drugoneshto = "drugone6tosi";
$sql=mysql_query('INSERT INTO neshto VALUES ("$neshto","$drugoneshto")');
}
onclick="<?php insertfunc($kakvotopodava6); ?>"
function insertfunc($arg) {
$arg= ...
и т.н.
}
<script type="text/javascript">
var minute = 60;
var hour = minute * 60;
var obj4,obj5,obj6 = null;
function toFixFormat(sender)
{
return (sender < 10) ? '0' + sender : sender;
}
function calculateTime(phpTime, obj)
{
var curTime = phpTime;
var hours = Math.floor(curTime / hour);
if (hours < 0)
{
obj.innerHTML = 'Готово';
return;
}
curTime -= hours * hour;
var minutes = Math.floor(curTime / minute);
curTime -= minutes * minute;
var seconds = Math.floor(curTime);
obj.innerHTML =
toFixFormat(hours)
+ ':' + toFixFormat(minutes)
+ ':' + toFixFormat(seconds);
window.setTimeout(
function() {
calculateTime(phpTime - 1, obj);
}, 1000
);
}
window.onload = function()
{
obj4 = document.getElementById('vreme_4');
calculateTime(15,obj4);
}
</script>
<body>
<span id="vreme_4"></span>
</body>