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.
и като викаш функцията и слагаш втори параметърfunction toolTip(text,div){
var login = document.getElementById(div);
login.style.display = 'block';
login.innerHTML = text;
}
toolTip('твоят текст',login);
Dizasterr каза:echo "<img src='admin/".$picture."' onmouseover='javascript:toolTip('Казарма','login');' onmouseout='hidetoolTip();' width='200px' height='150px' />";
Не трябва ли да е така!Replace каза:Dizasterr каза:echo "<img src='admin/".$picture."' onmouseover='javascript:toolTip(\'Казарма\',\'login\');' onmouseout='hidetoolTip();' width='200px' height='150px' />";
echo "<img src='admin/".$picture."' onmouseover=\"toolTip('Казарма','login');\" onmouseout='hidetoolTip();' width='200px' height='150px' />";