View Full Version : html help please
atcspaul
07-04-2010, 09:18 PM
could someone look at this html i am using for ads on my site. it works but not sure if i am doing it right. i would like picture and title to both take to the advertisers site but right now you have to click on either or. here it is.
</script><center>
<a href="http://gtmdecals.com
"target="_blank">
<img src="http://motorbicycling.com/images/misc/decals.gif"></a>
<div class="smallfont" align="center"><a href="http://gtmdecals.com"
target="_blank">Motorized Bicycle Decals!</a>
<br />
<br />
thank you in advance
There's probably a couple of different ways you could do this...
Paste this into your additional CSS box.
.adCopy {
text-align:center;
}Then try using this in place of your code. Note I omitted that closing script statement.
<div class="adCopy">
<a href="http://gtmdecals.com" target="_blank"><img src=
"http://motorbicycling.com/images/misc/decals.gif" /></a>
<div class="smallfont adCopy">
<a href="http://gtmdecals.com" target="_blank">Motorized Bicycle Decals!</a>
</div>
</div>
<br />
<br />
I'm no pro, I was just cruising through and seen your post ;)
borbole
07-05-2010, 03:14 PM
could someone look at this html i am using for ads on my site. it works but not sure if i am doing it right. i would like picture and title to both take to the advertisers site but right now you have to click on either or. here it is.
</script><center>
<a href="http://gtmdecals.com
"target="_blank">
<img src="http://motorbicycling.com/images/misc/decals.gif"></a>
<div class="smallfont" align="center"><a href="http://gtmdecals.com"
target="_blank">Motorized Bicycle Decals!</a>
<br />
<br />
thank you in advance
Qua coding there are a lot of errors with that, that won''t pass the xtml validation. For example, you got the ending script tag but no start such tag. The img tag doesn''t have the required alt attribute and it is an empty tag and as such it should be closed. Also the center tag and align center on div are both depricated.
Try to use this code. I cleaned it up and it does what you want. It will take both, the picture and title to go to the advertisers site when clicked upon as a single link, just like you asked. At least that is what I could understand from your request. Please let me know if that was what you wanted.
Anyway, here is the code:
<div style = "text-align: center">
<a href="http://gtmdecals.com" target="_blank"><img src="http://motorbicycling.com/images/misc/decals.gif" alt = "" /><br />Motorized Bicycle Decals!</a>
</div>
Hope it helps.
atcspaul
07-05-2010, 03:49 PM
thank you so much!
--------------- Added 1278350903 at 1278350903 ---------------
here is one more. this one has 16 errors showing. dosnt like the affiliate code or anything else. thanks again. i been trying different options and keep making things worse :(
</script><center>
<a href="http://www.bikeberry.com/index.php?ref=2&cPath=30&affiliate_banner_id=1
"target="_blank"> <img src="http://motorbicycling.com/images/misc/bbb.gif">
</center>
</a>
borbole
07-05-2010, 04:55 PM
thank you so much!
--------------- Added 1278350903 at 1278350903 ---------------
here is one more. this one has 16 errors showing. dosnt like the affiliate code or anything else. thanks again. i been trying different options and keep making things worse :(
</script><center>
<a href="http://www.bikeberry.com/index.php?ref=2&cPath=30&affiliate_banner_id=1
"target="_blank"> <img src="http://motorbicycling.com/images/misc/bbb.gif">
</center>
</a>
You are welcome.
Here, try this. The coding has been cleaned up but for the the errors in the affiliate url.
<div style = "text-align: center">
<a href="http://www.bikeberry.com/index.php?ref=2&cPath=30&affiliate_banner_id=1" target="_blank"><img src="http://motorbicycling.com/images/misc/bbb.gif" alt = "" /></a>
</div>
atcspaul
07-06-2010, 12:02 AM
thank you! do you think i should ask the sponser to fix his link? i have lots of errors on that
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.