Forums

Ware Do I place Java Code? (2 posts)

  1. monkeymartin@gmail.com
    Member
    Posted 3 years ago #

    I would like to add a some java script to by blog but I am not sure ware to place the Java code

    Here is the code:

    /* ---------------------------- */
    /* SHOW-HIDE Layer				*/
    /* ---------------------------- */
    function showlayer(layer){
    	var myLayer=document.getElementById(layer).style.display;
    	if(myLayer=="none"){
    		document.getElementById(layer).style.display="block";
    	} else {
    		document.getElementById(layer).style.display="none";
    		}
    }

    This is the link to the Java code
    http://woork.blogspot.com/2007/10/show-hide-layer-using-simple-javascript.html

    Should I put this code in the header or the page Ware I am using the script

    Thanks
    -mike

  2. joshkin20
    Member
    Posted 3 years ago #

    Hey Mike, did you ever figure out that script and where to put it? I'm looking for answers to the same problem.

    Let me know if you found anything.

    Thanks,

    -Josh

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags