The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

variables in div tags?

I am having trouble displaying a picture in a div tag in the body of my page. I think the problem lies in the fact that I need to use a variable to display the image and it is not carrying over for some reason.

The variables are all global and defined correctly in the functions. I hope this makes sense. If anyone can offer some advice, I will gladly try any thing. I can't even come up with any more search strings.

wow thanks for the quick reply. Sorry for the delay in posting - this is the first time I've been in front of a computer all day (that's both good and bad).

I don't have the code with me right now but I know that all of my variables are global because I am using them all in a few different functions where they keep the same value.

My current problem lies within this div tag though. I need to display a picture in a div (so i can show/hide it). I have written the code for this and it works. However, when I try use a variable (from the javascript functions in the html head) it will not display the picture.

This is a huge dillemma because I cannot display the picture without the variable.

I have tried so many different variations already it is hard to list them all. When I get back to my own computer I will put the code up but for now I would really appreciate it if anyone could offer some friendly advice. Thanks.