Forum Moderators: open

Message Too Old, No Replies

Purple outline on my button link? Please help!

         

Cubsrule84

2:08 am on Oct 22, 2008 (gmt 0)

10+ Year Member



Ok for some weird reason when I am creating my website with html and notepad there is a purple outline that looks horrible bordering my image that I am trying to open another page. Why is this and what did I do wrong in the code? This is what I wrote:

This gave me the purple outline:

<a href="C:\Documents and Settings\Joseph\My
Documents\Websites\test.htm"><img src="home.bmp"></a>

The images that it is showing is called home.bmp as you can see and when I click it it is opening my test window but there is a purple border appearing over the picture "home.bmp".

If I replace the HREF="C:\Documents and Settings\Joseph\My
Documents\Websites\test.htm" and put:

<a style="cursor:pointer;cursor:hand" onClick="window.location.href='C:\Documents and Settings\Joseph\My Documents\Websites\test.htm';"><img src="home.bmp"></a>

The purple border will go away and it will let me click it. The only problem is that when I click on it, nothing happens. It just wont try to load anything.

Does anyone know what I am doing wrong and how to open a new page, but without the purple line on it?

Any help will be appreciated!

Please help and thanks in advance, Joseph

P.S. Sometime when I type the code that does get rid of the purple border:

<a style="cursor:pointer;cursor:hand" onClick="window.location.href='C:\Documents and Settings\Joseph\My Documents\Websites\test.htm';"><img src="home.bmp"></a>

Sometimes it will just do nothing and sometimes it will load a page and nothin will show up. In the address bar it says:

res://ieframe.dll/dnserror.htm#file:///C:Documents%20and%20SettingsJosephMy%20DocumentsWebsitesest.htm

It is like it is trying to load this but it can't. Why is this and what is it?

Please help and thanks!

[edited by: Cubsrule84 at 2:19 am (utc) on Oct. 22, 2008]

pageoneresults

6:29 am on Oct 22, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hello Cubsrule84, Welcome to WebmasterWorld.

You'll want to add this to your style sheet...

img{border:0;}

That will remove the border from images. ;)

Cubsrule84

6:08 pm on Oct 22, 2008 (gmt 0)

10+ Year Member



Im sorry but what is a style sheet? I am kind of new to HTML. Also how do I add that code to it?

Cubsrule84

6:27 pm on Oct 22, 2008 (gmt 0)

10+ Year Member



Sorry but I just figured it out.