473,379 Members | 1,330 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

CSS and Javascript question.

I have a doubt over a question. I have a set of images when i hower over the image the background must change. The background of the menu must not change instead the image holding all the menu must change.

When i hower a menu 1 a new image must come in background and similarly for all the menus.


Hope you get it,


Thanx
Jul 11 '07 #1
3 1005
acoder
16,027 Expert Mod 8TB
Welcome to TSDN!

Show what code you have so far.
Jul 11 '07 #2
Thanx a lot

Let me give out the perfect sketch over it. Just view the page below

http://eulagam.com/vinoth

When i move over the picture1 , the BG image must change to different picture than what it is now.

Similarly when i hower picture2 then the image should change accordingly.


Can anyone help me out. please.
Jul 11 '07 #3
drhowarddrfine
7,435 Expert 4TB
This is easy in CSS:
[html]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="content-type"
content="text/html;charset=utf-8">

<style type="text/css">
a{background-image:url(picture1.png)}
a:hover{background-image:url(picture2.png)}
</style>

</head>
<body>

<h1><a href="#">hello</a></h1>

</body>
</html>[/html]
Jul 11 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.