Hi, We have just added a rotation banner on the top of our page at thesharpedge.com However i cannot seem to get rid of the border around the banner, i have tried various things in dreamweaver with no success. This is the code i am using.. <td width="566" align="left" valign="middle" bordercolor="#FFFFFF" border="0"> <SCRIPT language=JavaScript> /* +---------------------------------------------------------+ | Ad Simple Copyright www.YugDesign.com | +---------------------------------------------------------+ | This program may be used and hosted free of charge by | |anyone for personal purpose as long as this copyright | |notice remains intact. | +---------------------------------------------------------+ */ var img_width = "468"; var img_height = "60"; var img_title = "Offers and featured products"; var ad=new Array() //insert here your images src ad[0]='http://www.thesharpedge.co.uk/images/newbannersml/delivery.jpg'; ad[1]='http://www.thesharpedge.co.uk/images/newbannersml/bow2.gif'; var links=new Array() //insert here your links links[0]='http://www.thesharpedge.co.uk/Delivery-Information-sp-2.html'; links[1]='http://www.thesharpedge.co.uk/Bow-Wow-Speakers-in-Black--White-p-16454.html'; var xy=Math.floor(Math.random()*ad.length); document.write('<a href="'+links[xy]+'" target="_blank"><img src="'+ad[xy]+'" width="'+img_width+'" height="'+img_height+'" alt="'+img_title+'"></a>'); </SCRIPT></td> anyone got any ideas? thanks
Edit the last para: var xy=Math.floor(Math.random()*ad.length); document.write('<a href="'+links[xy]+'" target="_blank"><img src="'+ad[xy]+'" width="'+img_width+'" height="'+img_height+'" alt="'+img_title+'" [B]border="0"[/B]></a>'); </SCRIPT></td> Code (markup):
means no underline on link, or no line-through, or overline. Basically no text decoration. here is an example: <html> <head> <style type="text/css"> h1 {text-decoration: overline} h2 {text-decoration: line-through} h3 {text-decoration: underline} a {text-decoration: none} </style> </head> So if you are linking you image, it is surrounded by a blue boarder.... Hence, relation between text decoration and image boarder...
*sigh* HTML should only be a document. CSS is meant for styles. Even <strong></strong> is said that it is not semantic.
Do what soulscratch said. Unless your not wanting to have good coding...:/ But if it's banners your giving code to people to promote you the border="0" is best.