View Full Version : Drop-Down Menus and Alerts?


AdidasGuy
07-24-2003, 04:35 AM
Is it possable to have a drop-down menu and then when you hightlight an area on the menu and click "Enter" a pop-up alert will appear?

-AdidasGuy

Cherchezlafemme
07-24-2003, 04:58 AM
Actually I have seen it on www.angelic-netowork.com

My theory is that if you link it to an alert message instead of a normal URL. Then again it's theoretical, I need a genea pig to test it out *looks at Adidas Guy* Maybe you should try that. Both things you can find on lissa site.

What you need:

-The drop-down menu thing

-The alert script that pops up when you go over a link alert

AdidasGuy
07-24-2003, 05:21 AM
Well, I've tried everything and adding an alert to the drop-down doesn't work...I'll try searching on google or something and if nothing comes up, then I'll just have to add that section in when I'm done building the page. Thanks for trying!

<option value="alert('Under construction...')">Downloads</option>

-AdidasGuy

AdidasGuy
07-25-2003, 10:38 PM
Hey Cherchezlafemme...I've figured it out all by myself! I'm the smartest genea pig ever! I feel like I've invented my own "Alert on Drop Down Menus" HTML Code! I'm so excited! This is what I did and it worked perfectly...The first code goes in underneath your <head> tag and the second code goes inside your Drop Down Code...

<script language="javascript">
//<!--
function alert()
{ alert('Sorry, under construction...') }
-->
</script>

<option value="javascript:alert()">Downloads</option>

-AdidasGuy