Jump to content

page blanche javascipt


Recommended Posts

Bonjour à tous j'essaye désespérément d'intégrer un code javascript entre les head dans le header.tpl

celui ci marche niquel

   <link rel="stylesheet" type="text/css" href="{$content_dir}js/shadowbox/shadowbox.css">
       [removed][removed]
       [removed]
Shadowbox.init();

       [removed]





alors que celui ci me fait tout planter

<link rel="stylesheet" type="text/css" href="{$content_dir}js/shadowbox/shadowbox.css">
       [removed][removed]
[removed]
Shadowbox.init({
   // let's skip the automatic setup because we don't have any
   // properly configured link elements on the page
   skipSetup: true
});

window.onload = function() {

   // open a welcome message as soon as the window loads
   Shadowbox.open({
       content:    'Welcome to my website!',
       player:     "html",
       title:      "Welcome",
       height:     350,
       width:      350
   });

};
[removed]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...