View Single Post
Old 08-06-2006, 21:05   #4
Mr_love_monkey
Inactive
 
Mr_love_monkey's Avatar
 
Join Date: Jun 2003
Location: London way
Age: 50
Services: Sarcasm
Posts: 8,376
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Re: Slight probs with a javascript

Replace

Code:
       document.getElementById("theBigImg").src = theBigPic;
       document.getElementById("theBigImg").alt = theBigPic;
with

Code:
        document.getElementById("theImg").src = theBigPic;
        document.getElementById("theImg").alt = theBigPic;
You're trying to set the properties of the html link not the image

---------- Post added at 21:05 ---------- Previous post was at 21:04 ----------

and replace the

Code:
<a href="Large/blah">
with

Code:
<a href="#">
you don't need to, it's just tidier
Mr_love_monkey is offline   Reply With Quote