Mehdi72
07-19-2007, 07:47 PM
I need help implementing what appears to be a simple javascript :
http://www.javascriptkit.com/script/script2/divviewer.shtml
Directions: Add the below script to the HEAD section of your page:
<script src="DV.js" type="text/javascript">
/***********************************************
* Pagination Combo Box- by Axel Schneider (http://axelschneider.info/)
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
* Please keep this notice intact
***********************************************/
</script>
<script type="text/javascript">
//Define your images using arbitrary variables, to be passed in as arguments later down the page:
var bigbaby = '<img src="bigbaby.jpg" width="1075" height="717" border="0" alt="">'
var pancake = '<img src="food1.jpg" width="300" height="375" border="0" alt="">'
</script>
<script src="DV.js" type="text/javascript">
/***********************************************
* Pagination Combo Box- by Axel Schneider (http://axelschneider.info/)
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
* Please keep this notice intact
***********************************************/
</script>
<script type="text/javascript">
//Define your images using arbitrary variables, to be passed in as arguments later down the page:
var bigbaby = '<img src="bigbaby.jpg" width="1075" height="717" border="0" alt="">'
var pancake = '<img src="food1.jpg" width="300" height="375" border="0" alt="">'
</script>
<script src="DV.js" type="text/javascript">
/***********************************************
* Pagination Combo Box- by Axel Schneider (http://axelschneider.info/)
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
* Please keep this notice intact
***********************************************/
</script>
<script type="text/javascript">
//Define your images using arbitrary variables, to be passed in as arguments later down the page:
var bigbaby = '<img src="bigbaby.jpg" width="1075" height="717" border="0" alt="">'
var pancake = '<img src="food1.jpg" width="300" height="375" border="0" alt="">'
</script>
<script src="DV.js" type="text/javascript">
/***********************************************
* Pagination Combo Box- by Axel Schneider (http://axelschneider.info/)
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
* Please keep this notice intact
***********************************************/
</script>
<script type="text/javascript">
//Define your images using arbitrary variables, to be passed in as arguments later down the page:
var bigbaby = '<img src="bigbaby.jpg" width="1075" height="717" border="0" alt="">'
var pancake = '<img src="food1.jpg" width="300" height="375" border="0" alt="">'
</script>
You also need to download the below external JavaScript file:
DV.js
Then, to create a link that pops up an image when clicked on, do the following:
<a href="#" onClick="dv.showDV(pancake); return false">pancakes</a>
Where pancake is the variable containing the image tag to be shown (see code in your HEAD section.
Obviously this works on image links as well.
I do not need a text link, I want the image to be displayed on a mouse click over the thumbail. I have tried to incorporate the HTML as follows :
<html>
<head>
<TITLE>Test</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="Description" CONTENT="Test">
/***********************************************
* Pagination Combo Box- by Axel Schneider (h**p://axelschneider.info/)
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
* Please keep this notice intact
***********************************************/
</script>
<script type="text/javascript">
//Define your images using arbitrary variables, to be passed in as arguments later down the page:
var image = src="Images/SNICTI__Stationery_1_by_caprozo.jpg" width="2133" height="1600" border="0" alt="">'
</script>
</head>
<body bgcolor="#000000" text="#000000">
<body bgcolor="#000000" vlink="#000000" alink="#0000FF" link="#000000">
<font size="3" face="Tahoma">
<div align="center">
<center>
<p>
<img src="Images/SNICTI__Stationery_1_by_caprozo_small.jpg" width="100" height="100" border="0"></p>
</center>
</div>
</font>
<p>
</body>
</html>
http://www.javascriptkit.com/script/script2/divviewer.shtml
Directions: Add the below script to the HEAD section of your page:
<script src="DV.js" type="text/javascript">
/***********************************************
* Pagination Combo Box- by Axel Schneider (http://axelschneider.info/)
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
* Please keep this notice intact
***********************************************/
</script>
<script type="text/javascript">
//Define your images using arbitrary variables, to be passed in as arguments later down the page:
var bigbaby = '<img src="bigbaby.jpg" width="1075" height="717" border="0" alt="">'
var pancake = '<img src="food1.jpg" width="300" height="375" border="0" alt="">'
</script>
<script src="DV.js" type="text/javascript">
/***********************************************
* Pagination Combo Box- by Axel Schneider (http://axelschneider.info/)
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
* Please keep this notice intact
***********************************************/
</script>
<script type="text/javascript">
//Define your images using arbitrary variables, to be passed in as arguments later down the page:
var bigbaby = '<img src="bigbaby.jpg" width="1075" height="717" border="0" alt="">'
var pancake = '<img src="food1.jpg" width="300" height="375" border="0" alt="">'
</script>
<script src="DV.js" type="text/javascript">
/***********************************************
* Pagination Combo Box- by Axel Schneider (http://axelschneider.info/)
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
* Please keep this notice intact
***********************************************/
</script>
<script type="text/javascript">
//Define your images using arbitrary variables, to be passed in as arguments later down the page:
var bigbaby = '<img src="bigbaby.jpg" width="1075" height="717" border="0" alt="">'
var pancake = '<img src="food1.jpg" width="300" height="375" border="0" alt="">'
</script>
<script src="DV.js" type="text/javascript">
/***********************************************
* Pagination Combo Box- by Axel Schneider (http://axelschneider.info/)
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
* Please keep this notice intact
***********************************************/
</script>
<script type="text/javascript">
//Define your images using arbitrary variables, to be passed in as arguments later down the page:
var bigbaby = '<img src="bigbaby.jpg" width="1075" height="717" border="0" alt="">'
var pancake = '<img src="food1.jpg" width="300" height="375" border="0" alt="">'
</script>
You also need to download the below external JavaScript file:
DV.js
Then, to create a link that pops up an image when clicked on, do the following:
<a href="#" onClick="dv.showDV(pancake); return false">pancakes</a>
Where pancake is the variable containing the image tag to be shown (see code in your HEAD section.
Obviously this works on image links as well.
I do not need a text link, I want the image to be displayed on a mouse click over the thumbail. I have tried to incorporate the HTML as follows :
<html>
<head>
<TITLE>Test</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="Description" CONTENT="Test">
/***********************************************
* Pagination Combo Box- by Axel Schneider (h**p://axelschneider.info/)
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
* Please keep this notice intact
***********************************************/
</script>
<script type="text/javascript">
//Define your images using arbitrary variables, to be passed in as arguments later down the page:
var image = src="Images/SNICTI__Stationery_1_by_caprozo.jpg" width="2133" height="1600" border="0" alt="">'
</script>
</head>
<body bgcolor="#000000" text="#000000">
<body bgcolor="#000000" vlink="#000000" alink="#0000FF" link="#000000">
<font size="3" face="Tahoma">
<div align="center">
<center>
<p>
<img src="Images/SNICTI__Stationery_1_by_caprozo_small.jpg" width="100" height="100" border="0"></p>
</center>
</div>
</font>
<p>
</body>
</html>