faqts

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 9 people (78%) answered Yes
Recently 7 of 9 people (78%) answered Yes

Entry

How do I dynamicaly change the alt attribute of image tag in NN4? I can change the src attribute.

May 12th, 2008 21:03
i can do it, suresh kc, Sree Kumar,


use write function to do that
<DIV ID=demo>
<IMG SRC="xy.gif" ALT="this">
</DIV>
in your script 
<script>
if(document.layers) {
    document.demo.write ("<IMG SRC=\"xyz.gif\" ALT=\"that\">");
    document.demo.close();
} else {
    document.all.demo.innerHTML = "<IMG SRC=\"xyz.gif\" ALT=\"that\">";
}
</script>
http://www.stupidarticles.com
http://www.halazona.com
http://www.shikapika.com
http://www.stakoza.com
http://www.uploadarticles.com
http://www.ganazat.com
http://www.damima.com
http://www.tarabiza.com
http://www.articlesxarticles.com
http://www.articlesfreedirectory.com