Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 28th Nov 2012, 06:22 AM   #1
Advanced Warrior
 
Go4DBest's Avatar
 
Join Date: 2011
Location: Somewhere Out there!
Posts: 545
Thanks: 467
Thanked 77 Times in 63 Posts
Default
On Mouse Hover Image Button - Help!
Share on: 
fb share twitter share gplus share more share

Greetings Warriors!

The button works well only that on the first click, it will be gone a bit and come back right away. Just on the first click.. http://thesuperchargedagency.com/Uto...using-css.html

Here's my code:

<div>

<style type="text/css">
a.rollover {
display: block;
width: 308px;
height: 70px;
background-image: url('http://thesuperchargedagency.com/UtopiaGraphix/wp-content/uploads/2012/11/Start-Designing.png');
}

a.rollover:hover {
background-image: url('http://thesuperchargedagency.com/UtopiaGraphix/wp-content/uploads/2012/11/Start-Designing-hover.png');
}
</style>

<a href="#" class="rollover"></a>
</div>
Did I miss something? How can I make that the button won't be gone on the first click.

Thanks a lot!

G.B.

We setup and design wordpress sites using the Divi theme for roughly 200 USD. Let's talk.
Go4DBest is offline  
Unread 28th Nov 2012, 07:03 AM   #2
Advanced Warrior
 
Go4DBest's Avatar
 
Join Date: 2011
Location: Somewhere Out there!
Posts: 545
Thanks: 467
Thanked 77 Times in 63 Posts
Default
Re: On Mouse Hover Image Button - Help!
Share on: 
fb share twitter share gplus share more share

Anyone, please?

We setup and design wordpress sites using the Divi theme for roughly 200 USD. Let's talk.
Go4DBest is offline  
Unread 28th Nov 2012, 07:09 AM   #3
Active Warrior
War Room Member
 
Join Date: 2011
Posts: 66
Thanks: 51
Thanked 24 Times in 15 Posts
Default
Re: On Mouse Hover Image Button - Help!
Share on: 
fb share twitter share gplus share more share

I can't see any problem. What is your browser?
AdWordsUzmani is offline  
Unread 28th Nov 2012, 07:38 AM   #4
Advanced Warrior
 
Go4DBest's Avatar
 
Join Date: 2011
Location: Somewhere Out there!
Posts: 545
Thanks: 467
Thanked 77 Times in 63 Posts
Default
Re: On Mouse Hover Image Button - Help!
Share on: 
fb share twitter share gplus share more share

Originally Posted by AdWordsUzmani View Post

I can't see any problem. What is your browser?
I tested it in both Chrome and Rockmelt. On your first click, it seems like the button blinks. But later on, everything is fine.

We setup and design wordpress sites using the Divi theme for roughly 200 USD. Let's talk.
Go4DBest is offline  
Unread 28th Nov 2012, 07:59 AM   #5
Active Warrior
War Room Member
 
Join Date: 2011
Posts: 66
Thanks: 51
Thanked 24 Times in 15 Posts
Default
Re: On Mouse Hover Image Button - Help!
Share on: 
fb share twitter share gplus share more share

It's not blinking it is loading the image. And there is no solution for that. Maybe you can search css split image.
AdWordsUzmani is offline  
The Following User Says Thank You to AdWordsUzmani For This Useful Post:
Unread 28th Nov 2012, 08:35 AM   #6
Advanced Warrior
 
Go4DBest's Avatar
 
Join Date: 2011
Location: Somewhere Out there!
Posts: 545
Thanks: 467
Thanked 77 Times in 63 Posts
Default
Re: On Mouse Hover Image Button - Help!
Share on: 
fb share twitter share gplus share more share

Originally Posted by AdWordsUzmani View Post

It's not blinking it is loading the image. And there is no solution for that. Maybe you can search css split image.
Thanks for the input, pal.

I recorded my screen, please check, http://thesuperchargedagency.com/Uto...11-28_2235.swf

Thanks,
G.B.

We setup and design wordpress sites using the Divi theme for roughly 200 USD. Let's talk.
Go4DBest is offline  
Unread 28th Nov 2012, 08:57 AM   #7
Active Warrior
War Room Member
 
Join Date: 2011
Posts: 66
Thanks: 51
Thanked 24 Times in 15 Posts
Default
Re: On Mouse Hover Image Button - Help!
Share on: 
fb share twitter share gplus share more share

Like I said, there is no problem but still you can use the css split.
Here is the sample : Edit this Fiddle - jsFiddle
AdWordsUzmani is offline  
The Following User Says Thank You to AdWordsUzmani For This Useful Post:
Unread 28th Nov 2012, 09:17 AM   #8
Advanced Warrior
 
Go4DBest's Avatar
 
Join Date: 2011
Location: Somewhere Out there!
Posts: 545
Thanks: 467
Thanked 77 Times in 63 Posts
Default
Re: On Mouse Hover Image Button - Help!
Share on: 
fb share twitter share gplus share more share

Originally Posted by AdWordsUzmani View Post

Like I said, there is no problem but still you can use the css split.
Here is the sample : Edit this Fiddle - jsFiddle
Thanks a lot, you rock. The css split works..

We setup and design wordpress sites using the Divi theme for roughly 200 USD. Let's talk.
Go4DBest is offline  
The Following User Says Thank You to Go4DBest For This Useful Post:
Unread 28th Nov 2012, 02:18 PM   #9
Scott Blanchard
War Room Member
 
clickbump's Avatar
 
Join Date: 2009
Location: Birmingham, AL
Posts: 1,037
Thanks: 133
Thanked 302 Times in 180 Posts
Blog Entries: 1
Default
Re: On Mouse Hover Image Button - Help!
Share on: 
fb share twitter share gplus share more share

It may be helpful to others reading this to explain a bit more about what's happening and how to do it. Its a very useful technique to learn and use. The method is usually referred as using "CSS Sprites".

The beauty of this technique is that it does not require javascript and reduces http requests resulting in speedier sites and happier site visitors

Its very useful for displaying rollover images as well as common graphics that are used across a site. You download a master sprite image containing all of your images in one file and then you can use the css background-position property to show/hide images that make up the sprite.

This eliminates the extra http requests required to load each image as individual files and effectively preloads the hover image in the background so that its immediately available when called into view.

For example, in the jsfiddle, here's the complete image (a single image) that the demo utilizes to create the rollover effect as if it were two images:


clickbump is offline  
Unread 28th Nov 2012, 03:05 PM   #10
HyperActive Warrior
 
Join Date: 2012
Location: Montréal, Quebec
Posts: 244
Thanks: 4
Thanked 35 Times in 35 Posts
Default
Re: On Mouse Hover Image Button - Help!
Share on: 
fb share twitter share gplus share more share

I've only been able to do this using Javascript. Here's a small tutorial on how to,

<html>
<head>
<script type="text/javascript">
function swap() { window.document.pic.src='pic2.png'; }
</script>
</head>

<body>
<img src="pic1.png" name="pic" onhover="swap()">
</body>
</html>

bhmseoservices is offline  
Unread 28th Nov 2012, 09:04 PM   #11
SER Verified Lists Suppor
Registered Member
 
nawshale's Avatar
 
Join Date: 2012
Location: NJ
Posts: 148
Thanks: 25
Thanked 21 Times in 21 Posts
Default
Re: On Mouse Hover Image Button - Help!
Share on: 
fb share twitter share gplus share more share

In my opinion, there's no error in the program. Some of the codes are in need of splitting or you can try the basic structure for the html. Like bhmseoservices posted here. There's so many procedures you can try to make sure that the program will work.
nawshale is offline  
Closed Thread


Bookmarks

Tags
button, hover, image, mouse


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 01:58 AM.