hi,
new user.
if I type the directory shadowbox.js is in
then the box appears but the link loads the google page but not in a shadowbox.
If I don't type in the directory the box doesn't appear and the link doesn't open a box.
what's wrong ?
this is on my local drive and my test server.
--------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>test</title>
<link rel="stylesheet" type="text/css" href="./shadowbox/shadowbox.css">
<script type="text/javascript" src="./shadowbox/shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
// let's skip the automatic setup because we don't have any
// properly configured link elements on the page
skipSetup: true,
//
// include the html player because we want to display some html content
players: ["html"]
});
window.onload = function(){
// open a welcome message as soon as the window loads
Shadowbox.open({
content: '<div id="welcome-msg">Welcome to my website!</div>',
player: "html",
title: "Welcome",
height: 350,
width: 350
});
};
</script>
<body>
Click</body>
</html>
---------------------------
regards
mick