Forum Moderators: not2easy

Message Too Old, No Replies

Removing "border" from a linked image being clicked.

         

itledi

12:24 pm on Jan 6, 2008 (gmt 0)

10+ Year Member



I'm using javascript to allow the user to click on an image, and to swap the source with that of another.

I'm using an anchor tag with an onclick function to swap the images. The function returns false, allowing for people without javascript to go to the second page.

My problem is, when people with javascript click on the link. The images swaps and the user dosn't go to the other page, which is great, but there is a larger grey dashed border that appears around the image that stays.

How can I get rid of the border?

Its the same kind of border that appears when you right click on an image, but disappers when you get out of that content menu.

I had problems in the past with similar borders, and it ended up being resolved with CSS's overflow property, but I can't figure it out this time.

itledi

12:28 pm on Jan 6, 2008 (gmt 0)

10+ Year Member



I feel stupid. I over thought the problem.

Just setting the image to have border:0 solves the problem.

Thanks.