View Full Version : Inserting Dynamic Text/HTML into a Paragraph

02-03-2005, 06:22 AM
Hi all! Im back :P
(anyways :P)
Ive been trying to get this stupid javascript working for the past 20 hours but I cant seem to figure it out. (not literally 20 hours, but oh well :D).
First off, heres the URL:
(Im working on the javascript first, I know it doesnt show right with IE...)
When you click a thumbnail on the left, it is supposed to change the image on the right, and the contents of the p (_idesc), and the h1 (_ititle). I cant figure out the right javascript to use to change the innertext though. Ive tried _idesc.innerHTML="whatever" but that never works...

Any help??? :confused:

02-03-2005, 08:46 AM
okay i made the neccessary changes, only problem is its not displaying two out of the 4 images im not sure why it may be a server issue on ur side, but attached is a zip file with your page, i added the function that writes the image and the description into the proper places u will see this function above the head tags, i also made it to where u can use the functions over again as neccessary

02-03-2005, 09:05 AM

02-03-2005, 06:16 PM
Oh wow thanks alot! :) BTW, the two images arent displaying becuase they are REALLY big files (the images they display are just thumbnails)...

BTW, I actually tried document.getElementByID("_idesc").innerHTML and that never worked for me... In the javascript console (In firefox) it sayed that _idesc didnt have any properties... :confused:

And it works :)

02-03-2005, 11:36 PM
lowercase Id in document.getElementById