Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-06-2008, 07:15 AM   PM User | #1
BabyJack
Regular Coder

 
BabyJack's Avatar
 
Join Date: Apr 2008
Location: Somewhere.
Posts: 602
Thanks: 43
Thanked 6 Times in 6 Posts
BabyJack is an unknown quantity at this point
Programming 'GlassBox'

Hey, does anyone know what this means?
Quote:
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
BabyJack is offline   Reply With Quote
Old 05-06-2008, 05:05 PM   PM User | #2
BabyJack
Regular Coder

 
BabyJack's Avatar
 
Join Date: Apr 2008
Location: Somewhere.
Posts: 602
Thanks: 43
Thanked 6 Times in 6 Posts
BabyJack is an unknown quantity at this point
*bump*
__________________
Enlightenment in Coding
Validate before Posting | Google is your friend for PC Problems | Make sure you have a doctype
BabyJack is offline   Reply With Quote
Old 05-06-2008, 05:42 PM   PM User | #3
ghostz00
Regular Coder

 
ghostz00's Avatar
 
Join Date: Aug 2006
Posts: 128
Thanks: 11
Thanked 2 Times in 2 Posts
ghostz00 is an unknown quantity at this point
Where's your closing head tag?
__________________
Greg
ghostz00 is offline   Reply With Quote
Old 05-06-2008, 09:22 PM   PM User | #4
BabyJack
Regular Coder

 
BabyJack's Avatar
 
Join Date: Apr 2008
Location: Somewhere.
Posts: 602
Thanks: 43
Thanked 6 Times in 6 Posts
BabyJack is an unknown quantity at this point
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
BabyJack is offline   Reply With Quote
Old 05-06-2008, 09:29 PM   PM User | #5
ghostz00
Regular Coder

 
ghostz00's Avatar
 
Join Date: Aug 2006
Posts: 128
Thanks: 11
Thanked 2 Times in 2 Posts
ghostz00 is an unknown quantity at this point
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
ghostz00 is offline   Reply With Quote
Old 05-07-2008, 07:19 AM   PM User | #6
BabyJack
Regular Coder

 
BabyJack's Avatar
 
Join Date: Apr 2008
Location: Somewhere.
Posts: 602
Thanks: 43
Thanked 6 Times in 6 Posts
BabyJack is an unknown quantity at this point
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
BabyJack is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:46 AM.


Advertisement
Log in to turn off these ads.