|
Post by Smangii on Nov 13, 2006 18:23:43 GMT -5
Thought I'd post these as some guidance =) Function: Hide/Show function hideshow(id) { if(document.getElementById(id).style.display==""){ document.getElementById(id).style.display="none"; } else { document.getElementById(id).style.display=""; } }Very simple to use; <a href="javascript: hideshow('ID_NAME')">A</a> <div id="ID_NAME" style="display: none;">Stuff Here!</div> Function: Refreshfunction Refresh(){ self.location.reload(); }Simple too: <a href="javascript: Refresh()">Refresh Page</a> Function: Stop/Startfunction stop(){ IDHERE.stop(); document.getElementById('stop').innerHTML="Start" document.getElementById('stop').href="javascript: start();" } function start(){ IDHERE.start(); document.getElementById('stop').innerHTML="Stop" document.getElementById('stop').href="javascript: stop();" }Simple too. The link: a href="javascript: stop()" id="iStop">Pause</a> The IDHERE Part (an example) '<marquee id="IDHERE"></marquee> Staff / Member Legend:Start with: var group = []; group[0] = ["Administrators","700000"]; group[1] = ["Global Moderators","000070"]; group[2] = ["Moderators","007000"];Then use: var legend = new String(); for(var a=0;a<group.length;a++){ legend += '<font color='+group[1]+'>'+group[0]+'</font><br/>'; }When grabbing, all you need to type is '+legend+' =) More to be added soon.. Feel free to add your own!
|
|