button text picture change

This is a discussion on "button text picture change" within the JavaScript Forum section. This forum, and the thread "button text picture change are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Oct 30th, 2007, 15:29
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
button text picture change

Good Afternoon,
If possible could someone please assit me in getting this to work.

What i am after is when you

hoover over a button, the button(changes colour) picture and text changes.

3 columns
1st 2nd 3rd
button text picture

I have similar code (below) where you hoover over the text and the picture changes for example.

http://webdesign.friendsworld.co.uk/location/index.html
(the above website is in working progress)


Any help or time spent on this matter is greatly appreciated


Cheers
Daniel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Oct 30th, 2007, 15:36
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: button text picture change

I'm not sure I get it but ... if it's what I think it is ... you don't need JS

Fast Rollovers Without Preload
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Oct 30th, 2007, 15:42
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: button text picture change

I like the information that you have left above, and am going to incorporate it, into future work.

Sorry, now i have read my first post again it not that clear.

3 divs 1st with "button" 2nd with "text" 3rd with Picture

hoover over the button for new text and picture to appear


Cheers Dan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Oct 30th, 2007, 15:43
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: button text picture change

Ah ... Now I get ... disjointed rollovers I believe they are called.

Try:

http://bonrouge.com/~disjointed1
http://bonrouge.com/~disjointed_text
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Oct 30th, 2007, 15:54
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: button text picture change

This link you provided is half way there. Just need to implement a picture into it (button Picture and txt)

http://bonrouge.com/~disjointed_text

I am going to have a play with it tonight, see what happens

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Oct 30th, 2007, 15:55
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: button text picture change

Well ... I'm not sure how to have both the picture and the text to show up on hover so you might need JS for that
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Oct 30th, 2007, 21:59
Junior Member
Join Date: Oct 2007
Location: Sweden
Age: 29
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Re: button text picture change

Quote:
Originally Posted by karinne View Post
Well ... I'm not sure how to have both the picture and the text to show up on hover so you might need JS for that

function change(){
this.innerHTML = 'changed text'; // change the text
document.getElementById('yourimg').src ='yourimage'; //change image
this.style.color = 'pink'; //change text color
}

then

onmouseover="javascript:change();"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Feb 11th, 2008, 12:36
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: button text picture change

Thank you all

Cheers
Dan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
change the size of my button skat ASP.NET Forum 1 Mar 11th, 2008 19:56
how to change button action into a movieclip button action cjrollo Flash & Multimedia Forum 7 Nov 21st, 2007 17:07
Picture wrap around text? (more info inside) KOinMotion Web Page Design 1 Nov 13th, 2006 09:59
how do i change the adress bar picture ? bruno89 Web Page Design 7 Jul 26th, 2006 21:02
Random picture survey picture help Jould Web Page Design 6 Feb 25th, 2004 14:07


All times are GMT. The time now is 01:12.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42