Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MagicPoint [was: tlug: Draft of June 13 TLUG ... ]



Jim Schweizer wrote:

[snip]

> Unfortunately, not with Nav 4.03 on my Slackware box. It died
> on line 14:
> writeln("<h3 align=center>Your screen is <b>" +screen_w + "</b>

I just copied my script from the posting and got the same error thats
because of quoted-printable you have to move 'to ");' from line 15 and
connect it to line 14:
or use the one I sent on the bottom of the message;

Sorry for the trouble.
 
> Maybe it was the window manager... It's really difficult to get
> JavaScript to work on _all_ platforms/OSs. I wouldn't even want
> to try to get all my JS scripts to work on M$ IE*

If you get the JS error unterminated string then the new version will do
it for you :)

Yo Exploder is a real bitch nothing works cross platform on that piece
of junk. I have to wright 20 lines of code just to open a JS window that
looks the same on every browser on every platform because every version
of Exploder handles window sizes diffrent. Thank you Micro$oft for
delivering such a "fine" browser.
 
urs

############# JS sample #####################

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
  <head>
    <title>window width and height</title>
  </head>
<script language="JavaScript1.2">
<!--//
    // check the screen size
    var screen_w = screen.availWidth;
    var screen_h = screen.availHeight;
    
    with(document){
       writeln("<h1 align=center>window width and height</h1>");
       writeln("<h3 align=center>Your screen is <b>");
       writeln(screen_w + "</b>to ");
       writeln("<b>" + screen_h + "</b> pixels in size</h3>");  
    }

//-->
</script>
  <body bgcolor="#FFFFFF">
  </body>
</html>
--------------------------------------------------------------
Next TLUG Meeting: 13 June Sat, Tokyo Station Yaesu gate 12:30
Featuring Stone and Turnbull on .rpm and .deb packages
Next Nomikai: (?) July, 19:30 Tengu TokyoEkiMae 03-3275-3691
--------------------------------------------------------------
Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links