PDA

View Full Version : Window size Not working


Rafton
05-23-2003, 09:57 AM
This Page (geocities.com/rafton_house/asdf.htm)
At the bottom of the page there is a red link that says Click Here To Start.
It is supposed to open a window the size of the JPG (680 X 521). But It doesn't matter what size I put the Height it still chops of the bottom 2cm.
Is there something on one of the other pages.....asdf.htm or on this page....map.htm that is causing this or something else.
Also my CSS is set to make links in #ffff00 color but the links in the javascript onwindow script arent following the CSS. Inside the CSS do I need to put another instruction for these links. If so what. I haven't been able to find out any info.
Thanks in advance

Jason

zoobie
05-23-2003, 11:19 AM
Popping a huge jpg isn't really recommended...I almost left it took so long to load.

Anyway, try:

<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
<!--Hide script from old browsers

function newWin() {
window.open('map.htm', '', 'left=0, top=0,width=680,height=550, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=n o')
}

//Stop hiding script from old browsers -->
</SCRIPT>

and...

<H2><A HREF="#" onClick="newWin();">Click Here To Start</a></H2>

That page hurts. :p