...

View Full Version : Programming 'GlassBox'



BabyJack
05-06-2008, 08:15 AM
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:


<?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?

BabyJack
05-06-2008, 06:05 PM
*bump*

ghostz00
05-06-2008, 06:42 PM
Where's your closing head tag?

BabyJack
05-06-2008, 10:22 PM
Just a section of the code

ghostz00
05-06-2008, 10:29 PM
I mean it looks like your missing your closing </head> from the 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>

BabyJack
05-07-2008, 08:19 AM
Ok. I definitelty have an end tag - now how do I program GlassBox?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum