Note that there are some explanatory texts on larger screens.

plurals
  1. POundefined variable javascript - lightbox
    primarykey
    data
    text
    <p>im trying to open a lightbox when webpages loads using the javascript library <a href="http://dolem.com/lytebox/index.php?tab=2" rel="nofollow">"lytebox"</a></p> <p>here is my code </p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;script type="text/javascript" language="javascript" src="lytebox.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" href="lytebox.css" type="text/css" media="screen" /&gt; &lt;script&gt; function ShowIntro() { $lb.launch('example.jpg','showPrint:true','Orion Nebula','This is my description, which is optional'); } &lt;/script&gt; &lt;/head&gt; &lt;body onLoad="ShowIntro()"&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>the code works fine on firefox and chrome, but on internet explorer 8 it doesn't works and I get the following error:</p> <pre><code>Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E) Timestamp: Sat, 24 Sep 2011 05:10:04 UTC Message: '$lb' is undefined Line: 12 Char: 3 Code: 0 URI: file:///C:/Users/User/Desktop/lytebox_v5.1/lytebox.html </code></pre> <p>How can I fix it?</p> <p>p.s. im using lytebox because it doesnt need jquery, and i dont want cause conflicts with other parts on my page (like "videolightbox")</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload