Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> I Need Help With This Code
Dark Zero
post Oct 8 2007, 08:20 PM
Post #1


Newbie [Level 2]
**

Group: Validating
Posts: 25
Joined: 8-October 07
Member No.: 51,330



could some one help with this code. I have been working on this for the past hour trying to get it to work. this is the first time i have had problem with writing html code.


the code i need help with is
HTML
<a href="http://www.darkzone3.110mb.com/contact.php" target="_blank"><input type="image" height="27" width="139" src="http://www.darkzone3.110mb.com/buttons/contact.png" /></a>


for some reason on my page it want work at all it want even open it the same page.

What i'm trying to do with the code is a page in a new window using an image as a link.

This post has been edited by truefusion: Oct 9 2007, 01:40 AM
Go to the top of the page
 
+Quote Post
jlhaslip
post Oct 8 2007, 08:45 PM
Post #2


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,994
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



Wrapping an Anchor tag around an Input tag is just Waaaayyyyyy WRONG!!!!!

Explain to the nice people what you are trying to do and someone will assist you.

http://w3schools.com/tags/tag_input.asp
http://w3schools.com/tags/tag_a.asp
Go to the top of the page
 
+Quote Post
rvalkass
post Oct 9 2007, 05:56 AM
Post #3


apt-get moo
Group Icon

Group: [MODERATOR]
Posts: 2,114
Joined: 28-May 05
From: Hertfordshire, England
Member No.: 7,593
Spam Patrol



I am not sure why you have made the image an input? I'm not even sure that is valid. Anyway, the proper way to make an image appear is like so:

HTML
<img src="path/to/image/file.png" width="##" height="##" alt="Text if the image can't be displayed" />


So, this would make your code become:

HTML
<a href="http://www.darkzone3.110mb.com/contact.php" target="_blank"><img src="http://www.darkzone3.110mb.com/buttons/contact.png" height="27" width="139" alt="Alt text needed here" /></a>


Let us know if that works, and if that is what you are looking for.
Go to the top of the page
 
+Quote Post
Dark Zero
post Oct 10 2007, 08:37 PM
Post #4


Newbie [Level 2]
**

Group: Validating
Posts: 25
Joined: 8-October 07
Member No.: 51,330



QUOTE(rvalkass @ Oct 9 2007, 05:56 AM) *
I am not sure why you have made the image an input? I'm not even sure that is valid. Anyway, the proper way to make an image appear is like so:

HTML
<img src="path/to/image/file.png" width="##" height="##" alt="Text if the image can't be displayed" />


So, this would make your code become:

HTML
<a href="http://www.darkzone3.110mb.com/contact.php" target="_blank"><img src="http://www.darkzone3.110mb.com/buttons/contact.png" height="27" width="139" alt="Alt text needed here" /></a>


Let us know if that works, and if that is what you are looking for.


Thanks it worked. And that was just what i was looking for. I dont know why i could not figure that one out. Any ways thanks for the help.


--------------------
Dark Zero
www.darkzone3.110mb.com

This post has been edited by Dark Zero: Oct 10 2007, 08:37 PM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Whats The Best Code?(32)
  2. Disable Scrollbars, Menubars Etc....(6)
  3. I Forgot A Code(7)
  4. Scroll Color(2)
  5. Blendtrans Filter With Onmouseover?(1)
  6. Redirect Code Help(8)
  7. List-style Help(2)
  8. W3c Compliant Flash(0)
  9. Total Lines Of Code(3)
  10. Code For This Table Layout?(6)
  11. What Is The Xhtml 1.1 Code To Embed An Applet?(2)
  12. Code To Autocomplete A Form?(7)
  13. Realtime/wma Player In Websites(5)
  14. Html Question Concerning Pre Tag And Code Tag(8)
  15. Have You Used This Html Code?(9)
  1. Screen Resolution(6)
  2. Morse Code(4)
  3. My Very Sad Code(4)
  4. Transparent Roll Over Pictures(4)
  5. How To Display Php Code [resolved](8)
  6. Email Form Code(8)
  7. Applet Code(0)


 



- Lo-Fi Version Time is now: 6th September 2008 - 07:12 PM