The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
html help please
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 |
#2
|
||||
|
||||
There's probably a couple of different ways you could do this...
Paste this into your additional CSS box. Code:
.adCopy { text-align:center; } Code:
<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 /> |
#3
|
||||
|
||||
Quote:
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: HTML 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> |
#4
|
|||
|
|||
thank you so much!
--------------- Added [DATE]1278350903[/DATE] at [TIME]1278350903[/TIME] --------------- 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> |
#5
|
||||
|
||||
Quote:
Here, try this. The coding has been cleaned up but for the the errors in the affiliate url. HTML Code:
<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> |
#6
|
|||
|
|||
thank you! do you think i should ask the sponser to fix his link? i have lots of errors on that
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|