drop down menu with a pop up

They have: 4 posts

Joined: Dec 1999

ok on my page i have a drop down menu.. and what ive been looking for is when they click a link in the drop down menu i want that page to open in a pop up .. is that even possible? ive been told it is but i have no idea where to start with it so if anyone can steer me in the right direction id be thankful.

They have: 6 posts

Joined: Dec 1999

what are you using to make the drop down menu? cgi, javascript?

------------------
www.phrown.com

They have: 4 posts

Joined: Dec 1999

im using javascript

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi Genesis,

Read the tip of the day on this site's home page --> target="_blank"

Vinny --> http://members.aol.com/grassblad <-- cut&paste javascript

Where the world once stood
the blades of grass cut me still

They have: 4 posts

Joined: Dec 1999

thanks for that webpage .. i finally found a script for it the only questions i have are .. on the script that i have the pop up width and height that the same for each pop up .. can i make each pop up a diff size? and also my other question was i want the bg in the pull down colored and the text a different color and im not quite sure how to ..if anyone knows please let me know. thanks.

They have: 4 posts

Joined: Dec 1999

ohh thank you for that ha i had no idea

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Hi genesis,

The bgcolor of a <select> can be done like this:

Code Sample:

...
&lt;select name="whatever" class="background-color:YOURCOLOR;"&gt;
&lt;option&gt;your items&lt;/option&gt;
&lt;/select&gt;
...

For 'YOURCOLOR' you can use HTML-codes or colornames.
The fontcolor is, as far as I know, not to be modified.

------------------
Jack Michaelson
[email protected]
! Click here for my profile !

Shakespeare: onclick || !(onclick)

They have: 5,633 posts

Joined: Jan 1970

From the previous message just change the class="background-color:;" to style="background-color:;" then it will work but only in IE. NN doesn't like colored forms.

To make each popup window a different size would require an advanced script. You would have to store this info inside the option tag, something like this:

<option value="URL,HEIGHT,WIDTH">VALUE</option>

Then use javascript to separate these variables and pass them to the new window script. If you would like help in this area I can prepare a demo for you.

------------------
http://go.to/hass

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.