Cacti graph_view.php Auto scroll

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
Barichon
Posts: 6
Joined: Fri Oct 02, 2009 1:40 am

Cacti graph_view.php Auto scroll

Post by Barichon »

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.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

How about that code:

Code: Select all

?>
  <SCRIPT LANGUAGE="JavaScript">
     function Scroller() { 
        window.scrollBy(0,100); 
     } 
     setTimeout("Scroller()", 500); 
  </SCRIPT>
<?php
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Barichon
Posts: 6
Joined: Fri Oct 02, 2009 1:40 am

Post by Barichon »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests