Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder BabyJack's Avatar
    Join Date
    Apr 2008
    Location
    Somewhere.
    Posts
    602
    Thanks
    43
    Thanked 6 Times in 6 Posts

    Programming 'GlassBox'

    Hey, does anyone know what this means?
    3. Create a new object and define first (init) id, width, height and overflow, and second (apos) position left and top (see API DOC):

    <script type="text/javascript">
    var myGlassBox = new GlassBox();
    myGlassBox.init( 'myGlassboxContent', '400px', '300px', 'auto' );
    myGlassBox.apos( '290px', '35px' );
    </script>
    It's from this site: http://www.glassbox-js.com/#Usage.

    Here's my code:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <link rel="Stylesheet" type="text/css" href="Stylr.css" />
    <title>Wifee.co.uk - Your Sims Resource</title>
    <script src="glassbox/glassbox.js" type="text/javascript"></script>
    <body><center>
    
    <div id="myGlassboxContent">
    hi
    </div>
    <script type="text/javascript">
    var myGlassBox = new GlassBox();
    myGlassBox.init( 'myGlassboxContent', '400px', '300px', 'auto' );
    myGlassBox.apos( '290px', '35px' );
    </script>
    Why isn't it working?
    Enlightenment in Coding
    Validate before Posting | Google is your friend for PC Problems | Make sure you have a doctype

  • #2
    Regular Coder BabyJack's Avatar
    Join Date
    Apr 2008
    Location
    Somewhere.
    Posts
    602
    Thanks
    43
    Thanked 6 Times in 6 Posts
    *bump*
    Enlightenment in Coding
    Validate before Posting | Google is your friend for PC Problems | Make sure you have a doctype

  • #3
    Regular Coder ghostz00's Avatar
    Join Date
    Aug 2006
    Posts
    128
    Thanks
    11
    Thanked 2 Times in 2 Posts
    Where's your closing head tag?
    Greg

  • #4
    Regular Coder BabyJack's Avatar
    Join Date
    Apr 2008
    Location
    Somewhere.
    Posts
    602
    Thanks
    43
    Thanked 6 Times in 6 Posts
    Just a section of the code
    Enlightenment in Coding
    Validate before Posting | Google is your friend for PC Problems | Make sure you have a doctype

  • #5
    Regular Coder ghostz00's Avatar
    Join Date
    Aug 2006
    Posts
    128
    Thanks
    11
    Thanked 2 Times in 2 Posts
    I mean it looks like your missing your closing </head> from the code.

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <link rel="Stylesheet" type="text/css" href="Stylr.css" />
    <title>Wifee.co.uk - Your Sims Resource</title>
    <script src="glassbox/glassbox.js" type="text/javascript"></script>
    </head>
    <body><center>
    
    <div id="myGlassboxContent">
    hi
    </div>
    <script type="text/javascript">
    var myGlassBox = new GlassBox();
    myGlassBox.init( 'myGlassboxContent', '400px', '300px', 'auto' );
    myGlassBox.apos( '290px', '35px' );
    </script>
    Greg

  • #6
    Regular Coder BabyJack's Avatar
    Join Date
    Apr 2008
    Location
    Somewhere.
    Posts
    602
    Thanks
    43
    Thanked 6 Times in 6 Posts
    Ok. I definitelty have an end tag - now how do I program GlassBox?
    Enlightenment in Coding
    Validate before Posting | Google is your friend for PC Problems | Make sure you have a doctype


  •  

    Posting Permissions

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