Split : Color changer
+17
ryo aokawa
BlackDJ
Reflections7
Jeremjay24
Kryptonian
darkspectre
[EH]agentx44
Behaviour???
roboboy
Jophy
KingOfSports
Feli
Nik
MrMega
Yakko!
mcoy
Dumbledore27
21 posters
Page 1 of 2
Page 1 of 2 • 1, 2
Split : Color changer
Very useful!
I already wondered how to make that code
Thank you for this.
I already wondered how to make that code
Thank you for this.
Dumbledore27- Forumember
- Posts : 632
Reputation : -3
Language : Online
Location : Error 403 - You do not have the permission to view this item's value
Re: Split : Color changer
Nice...
well done
well done
Yakko!- Forumember
- Posts : 661
Reputation : -5
Language : Italian, english, Français
Re: Split : Color changer
Very nice tutorial
MrMega- Forumember
- Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States
Re: Split : Color changer
Dumbledore27 wrote:Very useful!
I already wondered how to make that code
Thank you for this.
mcoy wrote:nice one!
Spacca wrote:Nice...
well done
MrMega wrote:Very nice tutorial
Nik wrote:Yeah, very useful. Thanks.
Thanks for the compliments. I'm glad you guys like it!
KingOfSports- Hyperactive
- Posts : 2487
Reputation : 38
Language :
Location :
Re: Split : Color changer
Nice tutorial
Jophy- ForumGuru
- Posts : 17924
Reputation : 836
Language : English
Location : Somewhere
Re: Split : Color changer
Is there a way we can change the bagraound of the forum with this code? If yes, where do I place it?
Re: Split : Color changer
i think in the theme
[EH]agentx44- Forumember
- Posts : 58
Reputation : 0
Language : English
Re: Split : Color changer
Thanks boss.zoids25 wrote:Nice tutorial
roboboy wrote:i like it
Thanks a lot roboboy.
KingOfSports- Hyperactive
- Posts : 2487
Reputation : 38
Language :
Location :
Re: Split : Color changer
Hi, you messed up a little bit the code.
It should be:
or with onclick function:
It wasn't working whith onclick because you set the href=""
You can set href="#" to stay on same page after you clicked the link.
Another thing you can do when you use onclick function is to give the link an id and set the href to go to that id:
It should be:
- Code:
<a href="#" onmouseover="document.bgColor='#2B60DE'"><img src="IMG_LINK" /></a>
or with onclick function:
- Code:
<a href="#" onclick="document.bgColor='#2B60DE'"><img src="IMG_LINK" /></a>
It wasn't working whith onclick because you set the href=""
You can set href="#" to stay on same page after you clicked the link.
Another thing you can do when you use onclick function is to give the link an id and set the href to go to that id:
- Code:
<a id="color_changer" href="#color_changer" onclick="document.bgColor='#2B60DE'"><img src="IMG_LINK" /></a>
Re: Split : Color changer
darkspectre14 wrote:Hi, you messed up a little bit the code.
It should be:
- Code:
<a href="#" onmouseover="document.bgColor='#2B60DE'"><img src="IMG_LINK" /></a>
or with onclick function:
- Code:
<a href="#" onclick="document.bgColor='#2B60DE'"><img src="IMG_LINK" /></a>
It wasn't working with onclick because you set the href=""
You can set href="#" to stay on same page after you clicked the link(you will be sent on the top of the page).
Another thing you can do when you use onclick function is to give the link an id and set the href to go to that id:Now when you click the link you will be sent to the place where the "color changer" is.
- Code:
<a id="color_changer" href="#color_changer" onclick="document.bgColor='#2B60DE'"><img src="IMG_LINK" /></a>
Re: Split : Color changer
Well... For those of you who like simple codes, then this is for you:
True, thats only 10 characters trimmed off the original code, but its also valid HTML 4.01 Strict, and will prevent any issues with earlier made browsers.
- Code:
<img onMouseOver="document.bgColor='red'" src="http://i191.photobucket.com/albums/z301/lastfmbadges/black.png"></img>
- Code:
<a href="" onmouseover="document.bgColor='#2B60DE'"<img src="http://i191.photobucket.com/albums/z301/lastfmbadges/black.png" />
True, thats only 10 characters trimmed off the original code, but its also valid HTML 4.01 Strict, and will prevent any issues with earlier made browsers.
Kryptonian- New Member
- Posts : 18
Reputation : 0
Language : English, HTML, CSS, JavaScript, PHP, MySQL
Location : United States
Re: Split : Color changer
EDIT:
Code 1:
Code 1:
- Code:
<img onMouseOver="document.bgColor='#2B60DE';" src="http://i191.photobucket.com/albums/z301/lastfmbadges/black.png"></img>
Kryptonian- New Member
- Posts : 18
Reputation : 0
Language : English, HTML, CSS, JavaScript, PHP, MySQL
Location : United States
Re: Split : Color changer
Sorry for 2 post, i didn't know that we can't edit posts here(I accidentally clicked on quote).
Kryptonian: Image tag don't require to be closed.
I used a link to get automatic the hand cursor
Kryptonian: Image tag don't require to be closed.
I used a link to get automatic the hand cursor
- Code:
<img style="cursor: pointer;" onMouseOver="document.bgColor='#2B60DE';" src="http://i191.photobucket.com/albums/z301/lastfmbadges/black.png"/>
- Code:
<img style="cursor: pointer;" onclick="document.bgColor='#2B60DE';" src="http://i191.photobucket.com/albums/z301/lastfmbadges/black.png"/>
Re: Split : Color changer
nice and useful it seems ....... thanx
Reflections7- New Member
- Posts : 10
Reputation : 0
Language : English
Re: Split : Color changer
BlackDJ wrote:how i can input the background images ??
Thanks Advance
- Code:
<a href="" onmouseover="document.bgColor='COLOR YOU WANT'"<img src="URL TO IMAGE" />
KingOfSports- Hyperactive
- Posts : 2487
Reputation : 38
Language :
Location :
Re: Split : Color changer
Emma8432 wrote:That's really cool.
adj1993 wrote:Cooooool
Thanks. Glad you guys like it.
KingOfSports- Hyperactive
- Posts : 2487
Reputation : 38
Language :
Location :
Re: Split : Color changer
Of course you can use it on your forum...that's what this thread is for.
KingOfSports- Hyperactive
- Posts : 2487
Reputation : 38
Language :
Location :
Page 1 of 2 • 1, 2
Page 1 of 2
Permissions in this forum:
You cannot reply to topics in this forum