Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 04-10-2009, 01:40 PM   #1
HyperActive Warrior
 
Join Date: Sep 2008
Posts: 237
Thanks: 9
Thanked 3 Times in 3 Posts
Default Image Rollover Stuff - HTML Noob!

I tried google-ing this stuff for hours but can't find what I am looking for, probably because i am such an HTML noob

Here's what I want to do, it's very simple.

I have one image. When someone clicks on that image, another bigger image appears. Both images are different files, so its not just enlarging the first one, its showing a new image when the old one is clicked.

I used to know how to do this, but I forgot the code - thank you in advance if someone helps me out
simmonsmike7 is offline   Reply With Quote
Old 04-10-2009, 01:58 PM   #2
HyperActive Warrior
 
gxd5's Avatar
 
Join Date: Oct 2006
Location: , , .
Posts: 161
Thanks: 22
Thanked 70 Times in 27 Posts
Default Re: Image Rollover Stuff - HTML Noob!

<script language="Javascript">
<!--
if (document.images) {
button2 = new Image
button2.src = 'img2.gif'
}
//-->
</script>
<a href="" onClick="document.clickme.src=button2.src"><img src="img1.gif" border=0 name="clickme"></a>

gxd5 is offline   Reply With Quote
Old 04-10-2009, 03:37 PM   #3
HyperActive Warrior
 
Join Date: Sep 2008
Posts: 237
Thanks: 9
Thanked 3 Times in 3 Posts
Default Re: Image Rollover Stuff - HTML Noob!

hey man that worked well but what happens is it only shows the 2nd image for a quick second and then the second image goes away. you have to click the 1st image again for the 2nd one to appear, and only for a quick second.

is there a way to make the second image stay and not go away within 1 second?
simmonsmike7 is offline   Reply With Quote
Old 04-10-2009, 03:57 PM   #4
HyperActive Warrior
 
gxd5's Avatar
 
Join Date: Oct 2006
Location: , , .
Posts: 161
Thanks: 22
Thanked 70 Times in 27 Posts
Default Re: Image Rollover Stuff - HTML Noob!

My bad, I just threw that up without testing it. Here is a one line version that I have tested in Firefox 3:

<img onClick="this.src='two.jpg';" src="one.jpg" border=0>

gxd5 is offline   Reply With Quote
Old 10-15-2010, 11:03 AM   #5
Warrior Member
 
Join Date: Oct 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Image Rollover Stuff - HTML Noob!

i had leave u a pm ... pls reply me asap ty
UcDog is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum

Tags
html, image, noob, rollover, stuff

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



All times are GMT -6. The time now is 08:23 AM.