PDA

View Full Version : ASAP-Help Icon needed besides my controls on web page


vijk2001
08-22-2002, 03:16 PM
Hi,..

I have a web page with many controls ,some text edit , some drop downs etc.
I want to have a help icon besides my control which when clicked results in a pop up with information on that control.
How do i do it?.

Pls do help.
Vij...

starglow
08-22-2002, 03:33 PM
here's what I use... put this in your head:

<script language="JavaScript">
<!-- hide from JavaScript-challenged browsers
function openWindow(url) {
popupWin = window.open(url,'new_page','width=350,height=250,resizable=no,scrollbars=yes')
}
// done hiding -->
</script>


you can edit the width, height, resizable, scrollbars, etc however you want..

then with your img link:

<a href="JavaScript:openWindow('urlofpageyouwanttoopen.html')"><img src="imgname.jpg" border="0"></a>

that should do it

vijk2001
08-22-2002, 03:39 PM
Hi !,..

This should help..but what if i just want to open a Dialsog box when i click on help and i type info i want to see on it.
And dont want to open up a URL?....

Regards
Vij

Blaze
08-22-2002, 04:07 PM
If you are just looking to have a Dialog box with a message to pop up when your button is clicked, easy enough. Here's a page with a few different options.

http://javascript.internet.com/messages/

:)