calling javascript functions

  • Thread starter Thread starter AAaron123
  • Start date Start date
A

AAaron123

The following works, almost.

The address of the image appears in the titlebar(topmost area) as well in a
bar under the title bar.

I'd prefer that the address did not show at all.

Possible?

<script type="text/javascript">

function popupWindow(path, w, h) {

catWindow = window.open( path,"catWin", "width="+w+", height="+h+",resizable
= yes ,scrollbars = yes,status = no,titlebar =no,toolbar = no ")

}

</script>

Is the way I concatenated the parameters correct? Seems unusal to me but it
appears to work.



I call it thusly:

<a href="javascript:popupWindow('Images/MasterImage.jpg',300,300)"
Picture</a>

I'd like to specify the width and height of the .jpg image rather than
300,300.

Do you know how to do that?



Thanks for any help at all
 
If you want to specify an image size, you want to create a image handler
page rather than just open the image. The same is true if you want to hide
the image URL.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
 
I don't want to force the image size.

What I was asking was how to determine the number of pixels (width, height)
in the .jpg file.

I'll take your advice and create a page but still need to know how big to
create it.

thanks
 
Back
Top