Hallo,
ich habe folgenden Code:
<html>
<head>
<title>LevMedia - [Titel]</title>
<script type="text/javascript" src="title.js"></script>
</head>
<body>
<font face="verdana"><h1 id="title">[Titel]</h1></font>
<embed id="flash" type="application/x-shockwave-flash"
src="player2.swf"
style=""
id="single"
name="single"
quality="normal"
allowfullscreen="true"
allowscriptaccess="always"
wmode="opaque" flashvars="file=videos/film1.flv&image=logo_or.jpg&plugins=infobox-1&title=Neuer Vorspann&description=Hier führe ich den neuen Vorspann vor.&author=vb2008help&date=25. September 2010" height="440" width="520">
</body>
</html>
In title.js sieht es so aus:
var video;
video = window.location.search.substring(1);
title_ = new Array("Neuer Vorspann");
flash_ = new Array("file=videos/film2.flv");
count = 1;
if (video > count - 1) {
document.title = "LevMedia - Fehler";
} else {
document.title = "LevMedia - " + title_[video];
document.getElementById("title").innerHTML = title_[video];
document.getElementById("flash").flashvars = flash_[video];
}
Jetzt mein Problem:
Firefox meldet diese Nachricht: document.getElementById("title") is null!
Warum? Danke im Vorraus.