By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,607 Members | 1,978 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,607 IT Pros & Developers. It's quick & easy.

Pop Up from an image not using script

P: 4
I am using a window pop up code that activates by clicking on a text link. I am using the following code to do that...

Expand|Select|Wrap|Line Numbers
  1. <a href="http://www.mysite.com/forum/files/popup.html" onclick="window.open('http://www.mysite.com/forum/files/popup.html','popup','width=470,height=500,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false">Mp3 Pop Up Player
  2. </a>

Using similar code how do I link from an image instead of text?
Aug 24 '11 #1

✓ answered by Rabbit

Instead of mp3 popup player, put an image <img src='image.jpg' />

Share this Question
Share on Google+
4 Replies


Rabbit
Expert Mod 10K+
P: 12,430
Just replace the text with an image.

Just on a side note, you said you don't want to use a script but you used a script. What you have in your onclick is javascript.
Aug 24 '11 #2

P: 4
I should have said I didn't want to use anything that requires script to be added to the header or meta area.

What would the code I provided look like with the image?

I'm really kind of new. But I do know enough that if I get just one character off the code won't work.

Thanks for putting up with what probably appears to you as really simple.
Aug 24 '11 #3

Rabbit
Expert Mod 10K+
P: 12,430
Instead of mp3 popup player, put an image <img src='image.jpg' />
Aug 24 '11 #4

P: 4
Thank you Sir, that did it!
Aug 24 '11 #5

Post your reply

Sign in to post your reply or Sign up for a free account.