Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 27th, 2005, 12:38 AM
Authorized User
 
Join Date: Aug 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Drop Down and mouse over

How do you create a mouse over without using pictures? I was writing a webpage and I want to mouse over and then have a drop down box. Can anyone help or suggest a software to answer this question.

Thanks Alot

 
Old August 27th, 2005, 03:28 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Can you clarify? If you want something to happen when you hover the cursor over it either add a handler to the onmouseover event or use the title attribute to show a tool tip style window.

--

Joe (Microsoft MVP - XML)
 
Old August 27th, 2005, 12:49 PM
Authorized User
 
Join Date: Aug 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, what i wanted it to do was once I put the mouse over the word it created a drop down box and I can click on it and it takes me to the different pages.

 
Old October 23rd, 2005, 07:02 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is a very simple one:

<html>
<head>
<title>Unhide a Div</title>
</head>
<body>
Menu
<div id ="menudiv" style ="position:relative; top:10; left:0; visibility:hidden; border:1px solid black; width:10%"><a href ="www.somewhere.com">Somewhere</a><br><a href ="www.404page.com">404 Page</a><br><br><p align ="right"><a href ="javascript:hideMe()">X</a></p></div>


<script language ="javascript">
    var theMenu = document.getElementById("menudiv");

    function showMe(){
    theMenu.style.visibility = "visible";
    }

        function hideMe(){
        theMenu.style.visibility = "hidden";
    }
</script>

</body>
</html>






Similar Threads
Thread Thread Starter Forum Replies Last Post
Mouse Ravikiran VB.NET 1 June 8th, 2007 04:57 PM
Where's my mouse? Giant_robot_sandwich Javascript How-To 2 January 9th, 2007 09:22 AM
On Mouse Over teresagoh Javascript 1 February 13th, 2006 10:11 AM
drop down list values based on another drop down noor ASP.NET 1.0 and 1.1 Basics 3 July 5th, 2005 09:57 AM
Populating Drop Down based on other drop down jeffbarclay Java Databases 1 November 7th, 2003 12:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.