Click to See Complete Forum and Search --> : make graphic invisible
garywhw
November 27th, 2003, 03:47 AM
Hi all experts
How are you doing? :-)
:o i would like to make the graphic invisible and vice versa by using a button. Please advise whether this is feasible as i have been searching the web and yet could find any source regarding this.
Please advise how to achieve this and i shall be glad. :-)
Thanks alot and take care, mates
God bless
garyW:confused:
professorX
November 27th, 2003, 04:40 AM
You can use css-style.
Attribute visibility - hidden or visible for IE and hide or show for NN.
garywhw
November 27th, 2003, 07:54 PM
Hi Expert :P
Thanks for the advice and will try to do research on that and will
be asking for more, if i couldnt find any source :-)
Take care
God bless
garyW
professorX
November 28th, 2003, 01:12 AM
In JavaScript for IE You can use this:
document.images['imgName'].style.visibility = "hidden" //or "visible"
For NN:
document.images['imgName'].style.visibility = "hide" //or "show"
If You are developed it for browsers with DOM-technologies, You can use so:
document.getElementById('imgID').style.visibility = "hidden" //or "visible"
Also You can use DIVs (or layers - for NN 4.x) and then You can set image in div and use standard function for hide/show divs from Macromedia Dreamveawer - MM_showHideLayer (divName,'','show'); //or 'hide'
This function You can find in Dreamveawer - it generated automatically.
garywhw
November 30th, 2003, 08:48 PM
Hi ProfessorX
The javascript has helped solving my problem
Thanks so much and it really helps :-)
Take care
God bless
garyW
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.