Guest_imported
New member
- Jan 1, 1970
- 0
It seems like a fairly easy thing to do, but I seriously can not get my script to work. It consists of two functions:
function itemshow(itemshow) {
itemshow.visibility = "visible"
}
fuction itemhide(itemshow) {
itemshow.visibility = "hidden"
}
And my DIV to show and hide:
<div id="main"><img SRC="images/bigitem1.gif"></div>
And finally my links to hide and show it:
<a href="#" onclick="itemshow(main)">Show It, Baby!</a>
<a href="#" onclick="itemhide(main)">Hide It, Baby!</a>
I'm probably doing something incredibly stupid, but hey, I'm a newbie at this... thanks in advance for any help you can give =D
-Maalox
function itemshow(itemshow) {
itemshow.visibility = "visible"
}
fuction itemhide(itemshow) {
itemshow.visibility = "hidden"
}
And my DIV to show and hide:
<div id="main"><img SRC="images/bigitem1.gif"></div>
And finally my links to hide and show it:
<a href="#" onclick="itemshow(main)">Show It, Baby!</a>
<a href="#" onclick="itemhide(main)">Hide It, Baby!</a>
I'm probably doing something incredibly stupid, but hey, I'm a newbie at this... thanks in advance for any help you can give =D
-Maalox