Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Make a div disapear on blogger! Thanks! Re: Make a div disapear on blogger! Thanks!

#79181
renanholanda
Member

I changed the code a little to:

<script type=’text/javascript’>
//<![CDATA[
function changeYellowbar(){

//get variables
var yellowbar = document.getElementById("yellowbar");
var result = "";
var altura = "";

if(location.href == "http://hollandsales.blogspot.com/&quot; || location.href == "http://www.hollandsales.blogspot.com/&quot;){
result += "<img class=’book’ src=’//quickreg.ce43.com/img/book.gif’/> n";
result += "<img class=’cell’ src=’//www.gifted.uconn.edu/nviews/images/cellphone.gif’/> n";
result += "<img class=’laptop’ src=’//saddlebrook.bccls.org/laptop.gif’/> n";
altura = "150px";
}
else{
result = " ";
altura = "0px";
}

yellowbar.innerHTML = result;
yellowbar.style.height = altura;
}
//]]>
</script>

Now, it works fine. Thanks!