Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Help with border around image

Reply
Thread Tools

Help with border around image

 
 
Keith Smith
Guest
Posts: n/a
 
      05-11-2005
When I use this code....

window.open('gallery/pic1.jpg','windowname','width=775,height=550,resiz able=yes,scrollbars=yes,top=10,left=10');

....my web page displays a picture with a white border around it. Is there a
way to get rid of the white border? I want to continue to link directly to
my image (pic1.jpg) and not to an HTML page. The reason for this is because
if I link directly to an HTML page then I seem to have problems with pop-up
blockers.

Anyone know how to get rid of the white around the pic?



 
Reply With Quote
 
 
 
 
RobB
Guest
Posts: n/a
 
      05-11-2005
Keith Smith wrote:
> When I use this code....
>
>

window.open('gallery/pic1.jpg','windowname','width=775,height=550,resiz able=yes,scrollbars=yes,top=10,left=10');
>
> ...my web page displays a picture with a white border around it. Is

there a
> way to get rid of the white border? I want to continue to link

directly to
> my image (pic1.jpg) and not to an HTML page. The reason for this is

because
> if I link directly to an HTML page then I seem to have problems with

pop-up
> blockers.
>
> Anyone know how to get rid of the white around the pic?


You may have problems with blockers regardless.

<a href="gallery/pic1.jpg"
target="picpop"
title="whatever"
onclick="return openpic(this,775,550)">show pic</a>
...........
...........
function openpic(link, w, h)
{
window.HTML = [
'<body style="margin:0;background:black;' ,
'cursorointer;" ' ,
'title="click to close" ' ,
'onload=document.title="'+link.title+'" ' ,
'onblur="top.close()" ' ,
'onclick="top.close()">' ,
'<img src="' + link.href + '" ',
'style="width:'+w+'px;height:'+h+'px;' ,
'border-width:0;"></body>'
].join('');
picpop = window.open(
'javascriptpener.HTML',
link.target,
'width='+w+',height='+h+',top=10,left=10'
);
if (picpop.focus)
picpop.focus();
return false;
}

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get rid of border line around linked image Kian HTML 18 11-27-2012 10:03 PM
Getting rid of border around image Kevin Audleman HTML 12 02-13-2008 05:32 PM
Drop Down List Border Width vs Text Box Border Width Coder ASP .Net 1 06-24-2006 01:27 PM
row bottom border in inner table not matching up with row border in outer table phl HTML 1 06-08-2006 03:43 PM
Datagrid Border showing when I say no border tshad ASP .Net 0 01-31-2005 05:40 PM



Advertisments