SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Evangelist netkid's Avatar
    Join Date
    Jun 2003
    Location
    USA
    Posts
    563
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Chromeless not loading....

    The chromeless frame is not appearing when clicked on:

    http://hpweb.net-kid.net/books.php

    but same server, same code loads: (old site of mine)

    http://blog.net-kid.net/design1/index.php

    Santosh Sankar
    Bullish Bankers

  2. #2
    SitePoint Evangelist netkid's Avatar
    Join Date
    Jun 2003
    Location
    USA
    Posts
    563
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ? anyone ?

    Santosh Sankar
    Bullish Bankers

  3. #3
    Huh? What now? tntcheats's Avatar
    Join Date
    Aug 2003
    Location
    BC, Canada
    Posts
    719
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That is just plain weird.

    The coding's nearly identicle. Maybe it's because the entire code has to be identicle, even the comments just above the script tag?

  4. #4
    Huh? What now? tntcheats's Avatar
    Join Date
    Aug 2003
    Location
    BC, Canada
    Posts
    719
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    <script src="chromeless_35.js" type="text/javascript"></script> 
    <script language="javascript" type="text/javascript">
    // CREDITS:
    // Chromeless window script by Gabriel Suchowolski ( www.microbians.com )
    // Distributed with permission by Lissa ( www.lissaexplains.com )
    function openIT(u,W,H,X,Y,n,b,x,m,r) {
    	var cU  ='close_up.gif'
    	var cO  ='close_ovr.gif'
    	var cL  ='clock.gif'
    	var mU  ='min_up.gif'
    	var mO  ='min_ovr.gif'
    	var xU  ='max_up.gif'
    	var xO  ='max_ovr.gif'
    	var rU  ='res_up.gif'
    	var rO  ='res_ovr.gif'
    	var tH  ='<font face=verdana size=1>HPWeb:: Harry Potter Books</font>'
    	var tW  ='  window title'
    	var wB  ='#9966ff'
    	var wBs ='#FFFFFF'
    	var wBG ='#ffe0ff'
    	var wBGs='#9966ff'
    	var wNS ='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'
    	var fSO ='scrolling=no noresize'
    	var brd =b||0;
    	var max =x||false;
    	var min =m||false;
    	var res =r||true;
    	var tsz =20;
    	return chromeless(u,n,W,H,X,Y,cU,cO,cL,mU,mO,xU,xO,rU,rO,
            tH,tW,wB,wBs,wBG,wBGs,wNS,fSO,brd,max,min,res,tsz)
    }
    
    // wB | Border color 
    // wBs | Border color on window drag.
    // wBG | Background of the title bar.
    // WBGs | Background of the title bar on window drag.
    // var tH | Title of your window.
    
    </script>
    rather than

    Code:
    <script src="chromeless_35.js" type="text/javascript"></script> 
    <script language="javascript" type="text/javascript">
    // CREDITS:
    // Chromeless window script by Gabriel Suchowolski ( www.microbians.com )
    // Distributed with permission by Lissa ( www.lissaexplains.com )
    function openIT(u,W,H,X,Y,n,b,x,m,r) {
    	var cU  ='close_up.gif'
    	var cO  ='close_ovr.gif'
    	var cL  ='clock.gif'
    	var mU  ='min_up.gif'
    	var mO  ='min_ovr.gif'
    	var xU  ='max_up.gif'
    	var xO  ='max_ovr.gif'
    	var rU  ='res_up.gif'
    	var rO  ='res_ovr.gif'
    	var tH  ='<font face=verdana size=1>HPWeb:: Harry Potter Books</font>'
    	var tW  ='  window title'
    	var wB  ='#9966ff'
    	var wBs ='#FFFFFF'
    	var wBG ='#ffe0ff'
    	var wBGs='#9966ff'
    	var wNS ='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'
    	var fSO ='scrolling=no noresize'
    	var brd =b||0;
    	var max =x||false;
    	var min =m||false;
    	var res =r||true;
    	var tsz =20;
    	return chromeless(u,n,W,H,X,Y,cU,cO,cL,mU,mO,xU,xO,rU,rO,
            tH,tW,wB,wBs,wBG,wBGs,wNS,fSO,brd,max,min,res,tsz)
    }
    </script>

  5. #5
    SitePoint Evangelist netkid's Avatar
    Join Date
    Jun 2003
    Location
    USA
    Posts
    563
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm nope....

    My Code:

    PHP Code:

    <html>
    <head>
    <title>HPweb</title>


    <LINK href="style.css" rel="stylesheet" type="text/css">

    <script src="chromeless_35.js" type="text/javascript"></script> 
    <script language="javascript" type="text/javascript">
    // CREDITS:
    // Chromeless window script by Gabriel Suchowolski ( [url]www.microbians.com[/url] )
    // Distributed with permission by Lissa ( [url]www.lissaexplains.com[/url] )
    function openIT(u,W,H,X,Y,n,b,x,m,r) {
        var cU  ='close_up.gif'
        var cO  ='close_ovr.gif'
        var cL  ='clock.gif'
        var mU  ='min_up.gif'
        var mO  ='min_ovr.gif'
        var xU  ='max_up.gif'
        var xO  ='max_ovr.gif'
        var rU  ='res_up.gif'
        var rO  ='res_ovr.gif'
        var tH  ='<font face=verdana size=1>HPWeb:: Harry Potter Books</font>'
        var tW  ='  window title'
        var wB  ='#9966ff'
        var wBs ='#FFFFFF'
        var wBG ='#ffe0ff'
        var wBGs='#9966ff'
        var wNS ='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'
        var fSO ='scrolling=no noresize'
        var brd =b||0;
        var max =x||false;
        var min =m||false;
        var res =r||true;
        var tsz =20;
        return chromeless(u,n,W,H,X,Y,cU,cO,cL,mU,mO,xU,xO,rU,rO,
            tH,tW,wB,wBs,wBG,wBGs,wNS,fSO,brd,max,min,res,tsz)
    }

    // wB | Border color
    // wBs | Border color on window drag. 
    // wBG | Background of the title bar. 
    // WBGs | Background of the title bar on window drag. 
    // var tH | Title of your window.
    </script>



    </head>

    <body>

    <?php

    require('header.inc');

    ?>

    <br>

    <MAP NAME='imgmap'>
    <AREA SHAPE='rect' COORDS='21,7,60,20' HREF='index.php' ALT='Home'>
    <AREA SHAPE='rect' COORDS='61,9,95,20' HREF='books.php' ALT='Books'>
    <AREA SHAPE='rect' COORDS='98,8,136,20' HREF='movies.php' ALT='Movies'>
    <AREA SHAPE='rect' COORDS='137,7,180,23' HREF='forums.php' ALT='Forums'>
    <AREA SHAPE='rect' COORDS='183,8,230,21' HREF='rumors.php' ALT='Rumors'>
    <AREA SHAPE='rect' COORDS='233,9,276,20' HREF='projects.php' ALT='Projects'>
    <AREA SHAPE='rect' COORDS='280,9,328,20' HREF='contacts.php' ALT='Contact'>
    </MAP>

    <IMG SRC='hp3nav.png' border=0 width=400 height=30 USEMAP='#imgmap'> 
    <br>

    <div>


    </div>

    <a href="#" onclick="mywindow=openIT('hpbooks.php,400,200,null,null,'mywindowname')">Enter the World of Harry Potter Literature</a>



    </body>
    </html>
    Could the name of the image map "#" be it? since the href of the chromless is #??

    Santosh Sankar
    Bullish Bankers

  6. #6
    SitePoint Evangelist netkid's Avatar
    Join Date
    Jun 2003
    Location
    USA
    Posts
    563
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was jus missing a single quote in:

    Code:
    <a href="#" onclick="mywindow=openIT('hpbooks.php',400,200,null,null,'mywindowname')">Enter the World of Harry Potter Literature</a>

    Santosh Sankar
    Bullish Bankers

  7. #7
    Huh? What now? tntcheats's Avatar
    Join Date
    Aug 2003
    Location
    BC, Canada
    Posts
    719
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ugh,
    that's one of the problems with coding things! You could hit the comma key rather than the dot and it could ruin your entire script!

    And it's so hard to find the problem!

    But it's good that you have found it, I can say, at the very least.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •