How To Make Text Hover State Change Background Image

May 26, 2010

I use sprites for rollover effects so the hover attribute just changes the background image position. Everything works cool with the rollovers. What I would like to do, is make a text link that when rolled over will change a separate background image to it's hover state. I should add, that the the rollover image has it's own div and is separate from where the text link is located. To get a visual you can check the website [URL] In the body section I would like to make each of the dark red section titles a link that when rolled over will change the hover state of the corresponding "more" button.

View 6 Replies


ADVERTISEMENT

Change An Image To Its Hover State Based On Url?

Aug 31, 2011

I have 6 horizontal navigation image links on top of my site. The regular images are black n white, but on the hover they transform to a colored image. Each image leads to a different page on my site, I'm wondering if I can make the image corresponding to that page light up whenever on that page.

View 7 Replies View Related

Change Div Background Image With Link Hover

Apr 24, 2010

When I hover back and forth over a link in one area of a page, the background-image of a div in another part of the page needs to change back and forth. I have been trying all sorts of things in jquery with no results!

Here's the jquery script...
Code:
$function() {
$("#about-lifebook").hover(over,out);
function over (event) {
$(.spacer-bg-off).css("background", "url(images/spacer-content-bg.png)");
} function out (event) {
$(.spacer-bg-off).css("background", "none");
});

The link's id is "about-lifebook" and the div in question has a class of "spacer-bg-off". This ain't working at all. I just read this off of the jquery website: "The .hover() method binds handlers for both mouseenter and mouseleave events. We can use it to simply apply behavior to an element during the time the mouse is within the element." So perhaps the behavior has to be applied to the element being hovered over? How can I change the css of one element while hovering over another one?

View 1 Replies View Related

Properly Make Image Change / When Hover Over Main Image?

Nov 22, 2011

I was wanting to know how to properly make an image change when you hover over the main image.URL...And I want ALL the images to change as soon as you hover over each image.Now here's the problem. Whenever I layout my coding like that, when I hover over ANY image, an image I don't want to change, changes.So is there any way that I can get ALL images to work without having to create external JavaScript files?

View 4 Replies View Related

Hover Over Text To Change An Image?

May 20, 2010

personal website I am modifying for a friend. He basically has a list of links such as:

Home
Blog
Pictures
Links

What I want to do is that whenever you roll over, say, "Blog", an image appears to the right of the links (the image will be a small screenshot of what the blog looks like). When you roll over "Pictures", a different image appears in it's place.I already know how to do this when rolling over images, but not rolling over text. I used document.getElementById and just set the src to the image, but how do I do this when I just have text to roll over?[URL]

View 3 Replies View Related

Hover Over Text To Change Image

Mar 16, 2011

i have been trying 2 days to get it to work! basically the 3 image locations are in Variables in PHP

$piclocation1
$piclocation2
$piclocation3

What i want is when you hover over the div class "breaking-news", i want the div ID "latest-news-image" to change to that specific image background. example the top "breaking-news" class is on hover and the image $piclocation1 should show in "latest-news-image". if the middle "breaking-news" class is on hover the image $piclocation2 should show in "latest-news-image". i dont know if i got this in the right area as it would contain javascript, php and poss Css!

[Code]....

View 4 Replies View Related

JQuery :: On Text Hover Image Change?

Nov 16, 2010

I want this kind off effect [URL] using jquery.

View 2 Replies View Related

Make A Background Fade Out To A Semi-transparent State After / During Upload?

Dec 5, 2011

i have been tasked to create a web page that includes a fading background. (It must become semi transparent once the page has loaded,and remain until a new page is selected. I want to use a similar concept to: [URL]. However instead of fading out to black, i need it to fade out to white (between 10-15% image opacity). I would also need a similar central, transparent, scrollable frame/div (where each page will load up within and like the above link,i need a different background image to each page.

View 1 Replies View Related

JQuery :: Make A Background Fadeout To A Semi Transparent State After Upload?

Dec 5, 2011

For a college assignment, i have been tasked to create a web page that includes a fading background. (It must become semi transparent once the page has loaded,and remain until a new page is selected. I want to use a similar concept [URL]. However instead of fading out to black, i need it to fade out to white (between 10-15% image opacity).

I would also need a similar central, transparent, scrollable frame/div (where each page will load up within and like the above link,i need a different background image to each page.

View 1 Replies View Related

JQuery :: Rolling Over Hot Spot Breaks Image Hover State

Aug 4, 2011

I have an image that I start out with opacity = 0. Then when I rollover the image area the opacity is set to 1 so I can see the image, and when I roll off of the image the opacity is set back to 0:

This works fine. But the image has an image map that defines a small hot spot. When I roll over the hot spot the image hover state is interrupted and the image goes away. Does anyone know how I can keep the image hover state active when rolling over the image hot spot?

View 3 Replies View Related

JQuery :: Why Does The Hover State Return To The Initial State

Nov 1, 2011

I used the code from the following article...[URL]

$(function() {
$('img[data-hover]').hover(function() {
$(this).attr('tmp', $(this).attr('src')).attr('src', $(this).attr('data-hover')).attr('data-hover',

[code]...

why does the rolled over image's src return to the original value when the user rolls back off it?

View 1 Replies View Related

CSS Hover Reset After Background Color Change

Aug 21, 2009

I have a few table cells that have the following class:
.tc {
some declarations
}
.tc:hover {
background color changed
}

And I have a cell that has an onclick event that calls a function. The function gets all the cells and does this to them:
cell.style.backgroundColor = 'transparent'; // or whatever else

And then the background color of a clicked cell is changed to indicate that it has been selected. The problem is: when I change a backgroundColor of the cells, their :hover states no longer work: if I try to hover the mouse over them - nothing happens.

View 2 Replies View Related

Changing Background Image On Hover?

Jun 30, 2011

I want javascript to change the background image on hover.

This is my javascript:
function navOver(obj){
var imgUrl = 'url(images/' + obj.id + '.hover.png) center no-repeat';
obj.style.background='imgUrl';
}
function navOut(obj){

[Code]...

View 5 Replies View Related

Image / Text - Sliding Semi-transparent Text Layer Over A Thumbnail Image When Hover

Jul 5, 2009

I've been looking all over the place in order to find a script like they use on Foliostars, where you see a sliding semi-transparant text layer over a thumbnail image when you hover. how to achieve this using JS or an Ajax framework (preferably JQuery)?

View 2 Replies View Related

JQuery :: Background Image Swap On Hover Over Different Link

Dec 7, 2011

I'm trying to achieve an effect where background image will change once you hover over a different link, but not sure how to go about that...Here's what I got:

HTML
<ul id = "list">
<li id="home"><a href="#">HOME</li></a>
<li id="about"><a href="#">ABOUT</li>
<li><a href="#">PORTFOLIO</li>
<li><a href="#">WORK</li>
<li><a href="#">CONTACT</li>
<li><a href="#">GET A QUOTE</li>
</ul>

CSS
body {
background-image: url(Images/home.jpg);
} ul li {
list-style-type:none;
font-size:36px;
font-family:Impact, Charcoal, sans-serif;
} a:hover {
background-color:#7EB6FF;
-moz-border-radius: 15px;
border-radius: 5px;
width:40px;
} a:link {
text-decoration:none;
}

And JS should probably go something like this:
$("#about").hover(function() {
$(this).css("background-image", "url('Images/about.jpg')");
});

Though this only leads to image being show only partially (given that its li element only, I suppose).

View 5 Replies View Related

Mouseover Image To Change Rollover State Of Link

Mar 19, 2010

Here is an example of what is done so far: [URL].
When you mouse over the b&w images you will see the image change to color.
When you mouse over the links on the left they will have a rollover and also change the image on the right to color.

What I would also like is mouseover the image to change the rollover state of the link on the left. Here is my code so far..
PHP Code:
<style type="text/css"><!--/* ================================= *//* ====== Subject Matter Rollovers ====== 
*/#menuButton1{height: 41px;width: 133px;
overflow: hidden;background:
url(images/content/buttons/subjectmatter.png) top left no-repeat;
display: block;text-decoration:none;line-height:2.5em;color:#000000;}
#menuButton1:hover{color:#FFFF00;

I thought the following might work (2nd image)
Code:
document.getElementById('link2').class='menu_hover';
But as you see no it does not.

View 5 Replies View Related

JQuery :: Make HOVER For Image Map Areas?

Oct 8, 2009

I have some image with map. Main idea is to make some special roll-over effect on every area.

How can I make HOVER on each area of image?

[Code]...

View 1 Replies View Related

Knocks Out CSS:hover - Make The Left Product Categories Background Position "rollover" Menu Work

Apr 22, 2010

im trying to make the left Product Categories background position "rollover" menu work on this page: [URL] at the moment the page loads and CSS hover works to set the background position so that the graphic behind makes a roll over effect. i put some javascript to set the background position permantly to the roll over on click (so the user can see which one they are on) but then this knocks out the roll over effect on all other categories - it knocks out the CSS hover: onclick="setStyle('c1','backgroundPosition','0px 0px');

it means that c1:hover no longer works.. i tried putting !important in the CSS c1:hover background position and this fixed it in Firefox but not IE. So how can i write something in Javascript to also say: onclick="setStyle('c1:hover','backgroundPosition','-276px 0px');

i know Javascript does not do hyphens and the way to get for example "background-position" in CSS is to ditch the hyphen and make "P"osition capitol. perhaps something can be done also to get to the CSS hover attribute?

View 1 Replies View Related

Make Background Color Change / When Onmouseover Function Appear

Apr 28, 2010

I need to make background color change when onmouseover function appear. this is actually simple. but i need no javaScript codes in html-document. all javaScript should be in .js file.

View 2 Replies View Related

JQuery :: Make The Text Stop Sliding To The Right On Hover?

Jun 30, 2009

how can i make the text stop sliding to the right on hover?

View 2 Replies View Related

Make Background Color Change To White After Iframe Is Triggered?

Mar 21, 2010

I'm trying to make the background color change to white after the iframe is triggered. right now it sits transparent on the page but after the iframe is triggered i want the background to be white. is there a way to do this? i dont know much about java but im assuming this would be something to use java for

View 4 Replies View Related

Change The Background Image Of A Webpage Every Few Seconds To A Different Image?

Oct 6, 2011

i want to change the background image of a webpage every few seconds to a different image... i've written this code but it doesnt seem to work.

<script language="Javascript">
window.onload = backgroundchange();
function backgroundchange()[code]...

View 3 Replies View Related

Make The Logo (background Image) Fade

Feb 12, 2011

I want to make the logo background image fade to another background image on hover. Here is the code I have until now:

[Code]...

View 7 Replies View Related

JQuery :: Change Bg Image On Hover?

Aug 11, 2009

I have a dropdown menu. When the dropdown is hovered, I need a bg image to show, then slowly fade out when the mouse leaves. I wrote

[Code]...

View 1 Replies View Related

On Hover Hyperlink Change Image

Oct 19, 2006

can anyone help with a script which will change an image in a different frame when you hover over a link in a navigation frame. i have mamanged to get the images to change within the same frame, but having trouble changing it within another frame. Code:

View 2 Replies View Related

JQuery :: Change The Text Within A Div When Hover Over Another Div?

Jun 9, 2011

So I have 4 divs with id's of hoveroverarea1, hoveroverarea2, hoveroverarea3, and resultsbox.The resultsbox's visibility is set to hidden, so it doesn't show when the page loads.

I also have 3 <p> with a class of .comment1, .comment2, and .comment3
I have set the font size to really small and the background color to the same as its parrent so the text looks hidden and doesn't take up much space.I have the font size and color of #resultsbox set to 16px and black so I can see it when it is in #resultsbox.

What I want to do is

when you hover over #hoveroverarea1

1. change the #resultsbox to visable

2. replace the text in the #resultsbox to the text with a class of .comment1

when you hover off #hoveroverarea1

1. reset the text in #resultsbox

2. change the #resultsbox to back to hidden

I also need to do the same for hoveroverarea2 and hoveroverarea3.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved