hola
i figured out how to make an image appear next to a link when hovering by displaying it as a block and then using background:url
div.menu a{
display:block;
}
div.menu a:hover{
background:url( images/menuhover.gif) left no-repeat;
}
(ps here is a link if you want to see it in action . . . ) http://ferncreekdesign.spiritserver.org
now what i would like to do is to have a series of thumbnails on the edge of the page and use the hover property to display an image in the center of the page, which will change as i hover over the various thumbnails.
i said i would LIKE . . . is this possible??
10 2541 eWish 971
Recognized Expert Contributor
This will require the use of JavaScript, HTML/CSS alone will not be able to handle this. Moving post to JavaScript Forum.
--Kevin
Markus 6,050
Recognized Expert Expert
Create a function that takes the new images url. Then change the src attribute of the main image.
Actually, CSS can do this quite well.
Actually, CSS can do this quite well.
please do elaborate!
I didn't have an example handy and I can't get my head into it right now. You pretty much do what you already did with the butterfly. Just make it appear where you want on the page. If it needs to overlap existing elements, use z-index. It's easy and will work in all the modern browsers which, of course, leaves IE out of it. I don't recall IE being too much of a struggle though.
this is as close as i've gotten so far. http://spiritserver.org/rochestersus...ng/page01.html
obviously it isn't working quite right.
i know i can do this with javascript, but i would like to see if its possible with CSS. any pointers would be very welcome!
notes:
* i wanted to do the hover tags inline, but it seems that that is not acceptable
* as soon as the second thumbnail loads, it seems to change the hover properties for the first one.
* displaying the image as a background block pushes all following elements to the bottom. is there a way to avoid this?
(apparently position must be set as "fixed" to function in Firefox (??))
ps - mod - can we move this back to HTML/CSS forum?
gits 5,390
Recognized Expert Moderator Expert
since you don't want to use javascript i think it's ok to move it back to the HTML/CSS forum ... :)
good luck and kind regards,
MOD
yeah, thanks doc, that is exactly what i had in mind. i thought it was possible, just couldnt quite figure the implementation.
i am not really a javascript guy, as you can see from the javascript solution i came up with here. http://spiritserver.org/rochestersus...ery01.html?001
i thought it was cool because it used so little code, and i had never seen that solution before, but then its implementation is really choppy and retarded (now i know why i had never seen it . . . )
i will study the css and make a new page, and maybe brush on my javascript too. thanks to everyone for their help.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Shannon |
last post by:
Hi there,
I have an HTML page with one large background image in the left corner.
I've got various links positioned randomly on the image, and I use <span>
tags to display text on another section of the page when hovering over the
links. Here's an example of the code:
<head>
<title>My Title</title>
<style type="text/css">
|
by: Gnolen |
last post by:
Hi,
I am wondering if someone could guide me in the right direction about
this. How can I make div 'one' hover? Does not need to be
clickable/link...It would be easy if the images was not there..But now
it is..
<div class="one"><img src="img/someimage.gif" alt="" /><a
href="index.php">Text bla bla bla</a></div>
|
by: Alex |
last post by:
Hi all,
I'm using the following code in my website, and it's looking totally
different on IE and Firefox. It actually works on IE while Firefox is
weird.
In CSS:
img.left_nav_1 {background: transparent;}
a.left_nav_1 { background : url(/images/rollovers_01.gif);}
a.left_nav_1:hover {background : url(/images/rollovers_01-over.gif);}
|
by: chris_culley |
last post by:
Hi there,
I've got a gif with (highly) irregular shapes (lots of jigsaw pieces)
that I want to map so that each piece is a link...
The pieces are currently just a frame drawing, but as they are hovered
over I want them to be coloured in. I thought the easiest way to do
this would be to change the background image of the entire map (since
it's a bit of a pain trying to select each piece out of the image and
|
by: fredo |
last post by:
I've studied Eric Meyer's pure css popups, version two:
http://meyerweb.com/eric/css/edge/popups/demo2.html
which pops up an image when I roll over a text link.
Now I want to pop up a large image when I roll over a thumbnail. I've
tried some things, but can't make it work. See here (Warning: adult
matter):
| |
by: Carl Gilbert |
last post by:
Hi
Could someone please advise on the best method to achieve the following.
I want a flat menu which uses images rather than text for each menu item.
All items will have the same image regardless of selected page or hover. To
the left of the menu item I want to display another image (a 6px dot) 10 to
15 px from the menu item; I will use one colour image for the current page
and another colour image for the hover item. No image will...
|
by: camphor |
last post by:
hi,
I have a single column webpage with a horizontal dropdown menu and am trying to make the nav bar fit across the page, the column is 800px, it looks ok in dreamweaver 8 but when I test it in firefox, the nav bar which is a horizontal blue stripe with the links written inside it doesn't stretch the whole 800px, also how would you align the words in the submenu to the main menu, currently the submenus are centered
html
<body>
<div...
|
by: Haines Brown |
last post by:
I want a hot text string to display an image only when hovered.
In the body:
....
<a id="link-a" href="#nogo">
<img id="photo" src="..." />hot text
</a>
....
|
by: Sigilaea |
last post by:
My previous post got squashed because m post is too long. Sorry for that:
I have an AJAX page with a CSS menu at the top. My problem is the hover functionality stops working after someone clicks on one of the details in the main blue section. This only occurs in IE6. IE7 and FF work correctly.
The URL to the page is:
http://www.coralap.com/dies281css.aspx
Steps to reproduce:
1. Mouse over the top menu and verify the hover works.
2....
|
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...
|
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,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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...
| |