once again..."$ is not defined" - trying to implement sIFR
Posted
by supervision
on Stack Overflow
See other posts from Stack Overflow
or by supervision
Published on 2010-03-22T10:53:03Z
Indexed on
2010/03/22
11:01 UTC
Read the original article
Hit count: 257
JavaScript
|sifr
Hey Guys,
my file beginning looks like this:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My title</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="js/update.js" type="text/javascript"></script>
<!-- sifr -->
<link href="sifr207/sIFR-screen.css" rel="stylesheet" type="text/css" media="screen" />
<script src="sifr207/sifr.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function()
{
if(typeof sIFR == "function")
{
sIFR.replaceElement("sifr", named({sFlashSrc: "sIFR-2.0.7/corporateacon-reg.swf", sColor: "#FF0000" , sWmode: "transparent"}));
};
});
</script>
<!-- -->
</head>
I really do not understand why the '$(document).ready(function()' is not found, because I implement sifr.js BEFORE that call.
Any suggestions? I would appriciate it, really!
shoutz, supervision
© Stack Overflow or respective owner