PDA

View Full Version : Noob needs help



Neenahred
02-14-2008, 09:11 PM
1) Script Title: Image Thumbnail Viewer II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm

3) Describe problem: Ok so i have all the info in the head and boby and has the js working but yet it will not work. I have read and re-read the tut but am still not able to get it to work. I do not know what other info you need hopefully this is enough info. If you need more info let me know

Jas
02-14-2008, 09:15 PM
What happens when the script runs-- or is supposed to run? Do the images appear as [x], or not at all? Do you get any errors? The most likely problem if you followed the directions is the URL to the images (which is case sensitive). You might also try starting with it on a blank page to see if you can get it to work, as one of your other scripts/styles may be interfering with it.

Neenahred
02-19-2008, 08:30 PM
All the links show up but when i click or scroll over they do not open. when i click on them open a different page

dbldee
02-19-2008, 08:41 PM
CAn you post a lnk your page??

Jas
02-20-2008, 01:00 AM
It sounds to me like the url to the script is incorrect. Check the path and the case. If that doesn't help, post the code or a link.

Neenahred
02-20-2008, 07:58 PM
If the page is not live right now will that make a difference??

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><script type="text/javascript" src="thumbnailviewer2.js" defer="defer">

/***********************************************
* Image Thumbnail Viewer II script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<a href="http://www.nasa.gov/images/content/167040main_image_feature_738_ys_4.jpg" rel="enlargeimage::mouseover" rev="loadarea::http://www.dynamicdrive.com" title="This is an example">Thumbnail Example 1</a><br />
<a href="http://www.nasa.gov/images/content/168177main_image_feature_749_ys_4.jpg" rel="enlargeimage::mouseover" rev="loadarea">Thumbnail Example 2</a><br />

<a href="http://www.nasa.gov/images/content/166615main_image_feature_733_ys_4.jpg" rel="enlargeimage::click" rev="loadarea2">Thumbnail Example 3 (click)</a><br />
<a href="http://www.nasa.gov/images/content/168291main_image_feature_750_ys_4.jpg" rel="enlargeimage::click" rev="loadarea2">Thumbnail Example 4 (click)</a><br /><br />

<div id="loadarea" style="width: 600px"></div>

<h2 />

<div id="loadarea2" style="width: 550px"></div>
<div id="loadarea" style="width: 500px">
This DIV will show my enlarged images!
</div>
<script src="thumbnailviewer2.js"></script>

</body>
</html>

Jas
02-21-2008, 07:01 PM
Being offline doesn't matter.

Is the javascript in the same folder as the page? I tried it, and it works fine when the script's url points to the file. Right now your url is saying that the file is in the same folder as the webpage that is being viewed.

<script type="text/javascript" src="thumbnailviewer2.js" defer="defer">