Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Templates, scripts for templates, scripts and requests for templates.
Moderators: Developers , Moderators
Barichon
Posts: 6 Joined: Fri Oct 02, 2009 1:40 am
Post
by Barichon » Mon Oct 12, 2009 7:05 am
Hello guys,
I'm trying to include this javacode to make the scroll automatically graph-view page:
Code: Select all
echo "<SCRIPT LANGUAGE=\"JavaScript\"> ";
function Scroller() {
window.scrollBy(0,100);
}
setTimeout("Scroller()", 500);
echo"</SCRIPT>";
The fact is I obtain a blank page doing this...
Does someone can help me ?
Thx by advance.
phalek
Developer
Posts: 2838 Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:
Post
by phalek » Mon Oct 12, 2009 9:47 am
How about that code:
Code: Select all
?>
<SCRIPT LANGUAGE="JavaScript">
function Scroller() {
window.scrollBy(0,100);
}
setTimeout("Scroller()", 500);
</SCRIPT>
<?php
Barichon
Posts: 6 Joined: Fri Oct 02, 2009 1:40 am
Post
by Barichon » Mon Oct 12, 2009 10:33 am
No oups
It doesn't work...
Code: Select all
Parse error: syntax error, unexpected '<' in /usr/share/cacti/site/graph_view.php on line 3
Users browsing this forum: No registered users and 0 guests