javascript is supposidely not as syntax sensitive compared to PHP in terms of semi-colans, but at what costs?
Javascript will read a line break in the code the same as if you were to write a ';'
and it'll break the quotes right their as well...
So you have to remove all of your line breaks.
--
ps, you have a ton of HTML errors in that, and open brackets n stuff
---
i'm not sure exactly what your trying to do with it, so from what i can tell from the code...
i'm guessing one of these two options is what you are looking for
- Code: Select all
<head>
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<link rel="stylesheet" type="text/css" href="css/shadowbox.css" />
<link rel="shortcut icon" href="http://www.i-c-u.se/favicon.png" />
<script type="text/javascript" src="shadowbox.js"></script>
<link rel="stylesheet" type="text/css" href="styles.css" />
<link rel="stylesheet" type="text/css" href="shadowbox.css">
<script type="text/javascript">
Shadowbox.init({
handleOversize: "drag",
modal: false
});
</script>
</head>
or the less probable
- Code: Select all
<head>
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<link rel="stylesheet" type="text/css" href="css/shadowbox.css" />
<link rel="shortcut icon" href="http://www.i-c-u.se/favicon.png" />
<script type="text/javascript" src="shadowbox.js"></script>
<script type="text/javascript">
document.write(unescape('<link rel="stylesheet" type="text/css" href="styles.css" />'+
'<link rel="stylesheet" type="text/css" href="shadowbox.css">'+
'<script type="text/javascript">'+
'Shadowbox.init({' +
'handleOversize: "drag",'+
'modal: false'+
'});'+
'</'+'script>'));
</script>
</head>
just a tip, you should look at learning more about the basic HTML opening and closing tags.