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.

I am trying to make one of my pages have windows that pop up when the user clicks on something. I have a list of things, and I would like them to be able to click a little image (a question mark) next to it...and have the help file pop up defining that particular thing.

I have figured out that I obvously have to use Javascript for this, because I want to customize the pop up window to not have the menu items or browsing buttons.

I have also figured how to do this with one link...but how do I put 36 clickable question marks on a page?

I am confused about the script that I have to put in the <heading> </heading> parts.

Just insert 'javascript:openWindow1' before a standard link and put the link itself in brackets as shown here. You do this for each of the links on your page.

If you need different sized windows, that can be done too by adding additional scripts 'openWindow2' etc with the different parameters set for each one. Word of warning though. I run Windows ME (husband's choice, not mine!) and for some reason, if a pop-up is already open when the link is clicked, the new link will open in the existing pop-up, even if you tell it to open in a different one of a different size. This is fine if your users close each pop-up in turn, but not all do. I've got round this for the time being by telling the pop-ups to close 'onBlur'. This will also save Win95/98 users from closing down your main window and finding hundreds of pop-ups to close too!!

Hope this helps a bit, but I'm still new to the Java thing myself. Maybe some of the advisors here have a better way to do this?

I cut out the image part, so I just have a little question mark there. Click on it, and it says page not found. I do have the "yourpage.html" uploaded...and it is in the same directory as the "test.htm" page.

Please have a look at the code. I copied and pasted straight from your code from here, and then I also printed your code off and typed it in myself (and that is where I stand right now).

I saved your test page to my desktop and made the same changes to your source code that I told you to make in the PM I sent you and it worked.

Javascript's not hard....you just have to watch your spelling!

Saz

PS. The bit about removing the space between 'java' and 'script' in the hyperlink - I'm still confused how it ended up like that in the code I gave you as I copied and pasted it straight from my website.

Hmmmn.....Any SitePointers out there know why a space was automatically inserted there?