473,625 Members | 2,687 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript MouseOver button

I'm very frusterated..Be en trying to make mouseover buttons and cant
get it to work...can someone but up some sample code to show how to do
it, with a one button sameple and how to add additional please. or
point me in the direction of a tutorial..I want to be able to make
them for my site
Jul 23 '05 #1
3 2051
In article <e2************ **************@ posting.google. com>,
ri******@yahoo. com enlightened us with...
I'm very frusterated..Be en trying to make mouseover buttons and cant
get it to work...can someone but up some sample code to show how to do
it, with a one button sameple and how to add additional please. or
point me in the direction of a tutorial..I want to be able to make
them for my site


That depends on what you mean by a mouseover *button*.

Taken literally...
<input type="button" onMouseOver="wi ndow.status='mo used!';"
onMouseOut="win dow.status='';" value="hover me">

If that's not what you meant, please clarify.

--
--
~kaeli~
What if the Hokey Pokey IS what's it's all about?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2
kaeli <ti******@NOSPA M.comcast.net> wrote in message news:<MP******* *************** *@nntp.lucent.c om>...
In article <e2************ **************@ posting.google. com>,
ri******@yahoo. com enlightened us with...
I'm very frusterated..Be en trying to make mouseover buttons and cant
get it to work...can someone but up some sample code to show how to do
it, with a one button sameple and how to add additional please. or
point me in the direction of a tutorial..I want to be able to make
them for my site


That depends on what you mean by a mouseover *button*.

Taken literally...
<input type="button" onMouseOver="wi ndow.status='mo used!';"
onMouseOut="win dow.status='';" value="hover me">

If that's not what you meant, please clarify.


No not put of a form button.

I'm constructing a set of buttons to go on the main page of my
website....Thes e buttons when clicked by the mouse go to the various
pages that they are linked to within my site.. Also When the mouse
cursor is on the button the text on the botton appears to be turned on
like a lightbulb in the button...the set of buttons are going to be
used for navigation to other areas (pages) on my site..Does this
clarify it better for you..i hope
Jul 23 '05 #3
In article <e2************ **************@ posting.google. com>,
ri******@yahoo. com enlightened us with...

I'm constructing a set of buttons to go on the main page of my
website....Thes e buttons when clicked by the mouse go to the various
pages that they are linked to within my site.. Also When the mouse
cursor is on the button the text on the botton appears to be turned on
like a lightbulb in the button...the set of buttons are going to be
used for navigation to other areas (pages) on my site..Does this
clarify it better for you..i hope


Oh, yeah, sure.
Those are rollover images. No one uses real buttons for that. I know a
lot of people call them buttons, but they're not. ;)
You need two images. One has the "on" text and one has the "off" text.
Many image programs, like Photoshop, or development IDEs, like
Dreamweaver, can create the code for you.
If you want to do it yourself, see the link below.

http://www.webreference.com/js/column1/

--
--
~kaeli~
The definition of a will?... (It's a dead giveaway.)
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4669
by: Rob McLennan - ZETLAND | last post by:
Hi, I have set up an external stylesheet, named "print.css", to format the style of all pages printed from my company's website. I've been previewing my changes to the stylesheet by doing File\Print Preview in IE6 and noticed that occasionally the leftmost button of the javascript menu (CoolMenus Version 3.02) on our website is printed. (I have wrapped the javascript that generates this menu in a DIV so that it is concealed from...
8
3243
by: Rob McLennan - ZETLAND | last post by:
Hi, I have set up an external stylesheet, named "print.css", to format the style of all pages printed from my company's website. I've been previewing my changes to the stylesheet by doing File\Print Preview in IE6 and noticed that occasionally the leftmost button of the javascript menu (CoolMenus Version 3.02) on our website is printed. (I have wrapped the javascript that generates this menu in a DIV so that it is concealed from...
3
1776
by: richk | last post by:
For some reason when I add additional buttons a 3rd button and beyond i cant get the effect to work and I get errors...I cant understand why... <SCRIPT LANGUAGE = "javascript"><!-- if (document.images) { // Active Images img1on = new Image(); img1on.src = "button1_on.jpg";
3
2155
by: John Ortt | last post by:
I appologise for reposting this but I have been trying to find a solution all week with no avail and I was hoping a repost might help somebody more knowledgable than myself to spot the message... I am trying to write a webpage in Javascript. The page loads with three frames, a top, left and right frame. Depending on the users actions the background page rewrites the code for the relevant frames.
2
17730
by: Bendik Engebretsen | last post by:
I'm an ASP newbie and have just started experimenting with ASP.NET 2.0 using the VS.NET 2005 Beta. As a starting point I have used the 'Personal WEB site' starter kit. I am now trying to figure out how to make my image buttons come 'alive' with a mouseover effect. I am used to DHTML and using the mouseover event to change the bitmap. But what is the correct/best way to do this in ASP.NET ? Any experienced ASP.NET people who would care to...
2
2817
by: sgMuser | last post by:
Hi, I am not a good developer of Javascript codes. Needs this help to make some modification to this famous free javascript from Anarchos. i am using this in one of my webpage. What it does is, rotates banners with hyperlink specific to each image. it works just perfect but i need a simple modification. now I want to stop rotating the images when I mouseover on the image, and then continue once I move the cursor out of the banner image....
5
70703
by: den2005 | last post by:
Hi everybody, Problem with dragging effect of resizing is working but having problem with setting a flag to determine if mouse button is click or not. Is there anyone knows how to fixed this? I used several ways to do this as shown below, all telling me the error below. I used IE 6 w/ SP1. The error comes from onmousedown"mousedown()". Error message: Microsoft JScript runtime error: Object doesn't support this property or method
2
1160
by: OmniX | last post by:
Hi Guys, the problem im having is constructing a function that is usable for any submit button if it meets a certain criteria (this case mouseOver). Now orginally I was using the submit button for only one and was working fine but there are three. So I would like to make a javascript function that allows them to change color individually and not all at the same time. Thanks for the help in advance, Regards X =) <input value="1"...
0
8251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8182
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8352
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7178
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1800
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1496
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.