I use this code to dynamically change the visibility of a div:
document.getElementById('div_id').style.display="block";
document.all.div_id.style.display = "block"; // for IE 6
The first code statement works great in all browsers (including IE7+) but not in IE6, so I added the second...
I have the following line of code in my HTML, which fires off Javascriot functions. I want to separate the JS from the HTML, but I'm not sure how to do it. Here's the code:
<code><li><a id="activatebutton" class="button1" href="javascript:activateIt();" onmousedown="changeimage(); return...
Is this a pipe dream or a possibility with Javascript?
I have an html page with a button. The user pushes the button and the script opens a new window, loads a swf file, and auto plays it.
This seems like too much for Javascript, but I am new to JS and wonder if any gurus out there knew if...
I have the following image and button code:
<code> <img id="someimage" src="Image1.gif" alt = "" /></code>
.....
<code><li><a class="button1" href="javascript:void()" onclick="javascript:activateNewWindow()"></a></li></code>
This func will replace the Image1.gif image on my page with an...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.