rejetto forum
Software => HTML & templates => HFS ~ HTTP File Server => RAWR-Designs => Topic started by: Jake on January 24, 2008, 06:39:02 AM
-
Great Template but a couple of minor problems
By default when you load the Main Page the ["Server Statistics" and "Shout Box" ] frames are minimized by default how do i change that? i cannot find it in the code :-[
THanks
-
Erm... u can play around with the terayon.jsp file, javascript coding that in the java folder. If not sure about to modifying the coding, please let me know. May be I can help out ;)
-
//--Initiate page changes.-----------------------//
function initiateChanges() {
dynPL();
altRowClr();
autoPlay();
ahah(1);
if (showSlideshow == true) gEBI("SlideShowLink").style.display = ""
if (getCookie("ModuleTable") == "pinned") hideShow("ModuleTable");
if (getCookie("ShoutBox") != "normal") hideShow("ShoutBox");
if (getCookie("ServerStatistics") != "normal") hideShow("ServerStatistics");
if (getCookie("ServerTraffic") == "pinned") hideShow("ServerTraffic");
if (getCookie("FolderOptions") == "pinned") hideShow("FolderOptions");
}
the last 5 if statements define the default values
getCookie("module name here") == "pinned" means that it is shown by default
getCookie("module name here") != "normal" means that it is hidden by default.
if you want them all to be visible by de fault, you will need this:
//--Initiate page changes.-----------------------//
function initiateChanges() {
dynPL();
altRowClr();
autoPlay();
ahah(1);
if (showSlideshow == true) gEBI("SlideShowLink").style.display = ""
if (getCookie("ModuleTable") == "pinned") hideShow("ModuleTable");
if (getCookie("ShoutBox") == "pinned") hideShow("ShoutBox");
if (getCookie("ServerStatistics") == "pinned") hideShow("ServerStatistics");
if (getCookie("ServerTraffic") == "pinned") hideShow("ServerTraffic");
if (getCookie("FolderOptions") == "pinned") hideShow("FolderOptions");
}
-
i have tried Changing that section of the Terayon.js to the modified stuff but it didnt change anything :(
i cleared my browser cache cookies and everything and still no luck
-
Then you should try again, because that piece of code is the only code that is related to hiding and showing the modules on a page load. =\
-
If you want the module to be hidden or shown by default on page load you need to fire the function.
It would be something like this. Make sure you place each one below below the associated module html otherwise it will not work.
<script type="text/javascript">hideShow("ServerStatistics");</script>
<script type="text/javascript">hideShow("ShoutBox");</script>
That way, when the page is loaded, the modules should be at the state you want.
That should do it, and why you didn't remember this GE i don't know lol.
-
Thanks a lot i got it to work
-
Great Template but a couple of minor problems
By default when you load the Main Page the ["Server Statistics" and "Shout Box" ] frames are minimized by default how do i change that? i cannot find it in the code :-[
THanks
I thought that he ment it should be open as a default value, not always for every user :)