Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Butler Trumpet

macrumors 6502a
Original poster
May 26, 2004
521
410
Dekalb IL
Why cant I get this java script to work in IE? It works in the other browsers

Here is the link..... click the pictures and they open in a pictures sized window.

http://homepage.mac.com/michael_swope/reyman/trumpet/pictures.htm

here is the code Im using:

Code:
javascript:window.open('images/golf1_big.jpg','Golf%20Outing','width=700,height=525,resizable=yes,scrollbars=no,toolbar=no,status=no,menubar=no');images/golf1_big.jpg
 
Try second parameter of window.open without space (%20) and it should work.

Have Fun.
 
okay...
take a look at that site again ... http://homepage.mac.com/michael_swope/reyman/trumpet/pictures.htm

and you notice how the page shifts over when you go from the 'pictures' section to any of the other links at the top?

Its because of the scroll bars, they cause the stuff which is centered on the page to shift because the page is a few pixels smaller..... is there anyway to avoid this?

(this is only a problem on smaller monitors)
 
You can force vertical scrollbar on every page by adding this into your css:

<style type="text/css">
HTML {
height: 100%;
}
BODY {
min-height: 101%;
}
</style>

than there will be no horizontal jumps.

Have Fun
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.