Print Page | Close Window

slideshow issues

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25593
Printed Date: 28 March 2026 at 9:02am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: slideshow issues
Posted By: Athex
Subject: slideshow issues
Date Posted: 12 April 2008 at 3:33am
K I've got part of my scrolling slideshow working. however i cannot get it to work on the top of this page  http://www.picocanada.com/newindex.asp - http://www.picocanada.com/newindex.asp
as you can see the bottom works great, but if i try to add the same code in the top cell it goes wonky and the page gets nuked.

here is the current script, what do I need to do to get this to work???

"
<%Option Explicit%>
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<title>Welcome to Pico of Canada / Accueillir à Pico du Canada</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="keywords" CONTENT="PICO">
<META NAME="description" CONTENT="PICO">
<META HTTP-EQUIV="Content-Language" CONTENT="en-us">
<META NAME="ROBOTS" CONTENT="NOINDEX NOFOLLOW">
<META NAME="revisit-after" CONTENT="14 days">
<link href="topmenu.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="validation.js"></script>

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function init() {
define('contact', 'string', 'Contact Name');
define('business', 'string', 'Business Name');
define('address', 'string', 'Business Address');
define('city', 'string', 'City');
define('province', 'string', 'Province');
define('postal', 'string', 'Postal Code', 6);
define('From', 'email', 'Email');
define('area', 'num', 'Area Code' , 3);
define('phone', 'string', 'Phone Number');
define('comments', 'string', 'Comments');
}
//  End -->
</script>
<style type="text/css">
.style1 {
    font-size: 10px;
}
a:visited {
    color: #FFFF00;
}
a {
    color: #FFFF00;
}
.style8 {
    border: 0 solid #FFFF00;
    font-size: 1px;
    text-align: center;
    background-image: url('graphics/corner4.jpg');
}
.style6 {
    border: 0 solid #FFFF00;
    text-align: center;
    background-image: url('graphics/sidebar.jpg');
}
.style3 {
    text-align: center;
    border: 0 solid #FFFF00;
    background-image: url('picobackground.jpg');
    color: #FFFF00;
}
.style9 {
    border: 0 solid #FFFF00;
    font-size: 1px;
    text-align: center;
    background-image: url('graphics/sidebar.jpg');
}
.style10 {
    border: 0 solid #FFFF00;
    font-size: 1px;
    text-align: center;
    background-image: url('graphics/sidebar2.jpg');
}
.style11 {
    border: 0 solid #FFFF00;
    font-size: 1px;
    text-align: center;
    background-image: url('graphics/corner1.jpg');
}
.style12 {
    border: 0 solid #FFFF00;
    font-size: 1px;
    text-align: center;
    background-image: url('graphics/corner2.jpg');
}
.style13 {
    border: 0 solid #FFFF00;
    font-size: 1px;
    text-align: center;
    background-image: url('graphics/corner3.jpg');
}
.style14 {
    border: 0 solid #FFFF00;
    text-align: center;
}
.style15 {
    vertical-align: middle;
    margin-left: 0px;
}
.style16 {
    text-align: center;
}
.style17 {
    color: #FFFF00;
}
.style20 {
    color: #FFFF00;
    text-align: center;
}
a:hover {
    color: #FFFF00;
}
.style21 {
    text-decoration: none;
}
.style22 {
    text-align: center;
    border: 0 solid #000000;
    color: #FFFF00;
    background-color: #000000;
}
</style>
</head>

<body text="#000000" leftmargin="0" topmargin="0" style="background-color: #000000">

<p>&nbsp;</p>

<table style="width: 760px" cellpadding="0" class="style1" align="center" cellspacing="0">
    <tr>
        <td class="style11" style="width: 5px;">&nbsp;</td>
        <td class="style10" style="height: 5px">&nbsp;</td>
        <td class="style12" style="width: 5px;">&nbsp;</td>
    </tr>
    <tr>
        <td class="style6" style="width: 5px;" rowspan="3">&nbsp;</td>
        <td class="style14" style="height: 100px; width: 750px;">
       
        &nbsp;</td>
        <td class="style9" style="width: 5px;" rowspan="3">&nbsp;</td>
    </tr>
    <tr>
        <td class="style3" style="height: 382px; width: 750px">
        <table style="width: 100%">
            <tr>
                <td class="style20" style="width: 275px"><strong>
                <a class="style21" href="en/main.asp">
                <span class="style17">PICO Of Canada Ltd.<br>
                </span><sub><span class="style17">(English)</span></sub></a><sub><br>
                <br>
                <br>
                </sub></strong></td>
                <td class="style16" style="width: 200px">
                <img src="pico.gif" class="style15" width="200" height="211"></td>
                <td class="style20" style="width: 275px"><strong>PICO Du Canada
                Lteè<br>
                <sub>(Français)<br>
                <br>
                <br>
                </sub></strong></td>
            </tr>
        </table>
        <br>
        <br>
        <br>
     &nbs

-------------
Administrator of Network Communications.
http://www.picocanada.com
E. Grosser



Replies:
Posted By: Athex
Date Posted: 13 April 2008 at 10:58pm
can anyone tell me how to get this script to work properly twice on one page???

"
<script type="text/javascript">
//Specify the slider's width (in pixels)
var sliderwidth="750px"
//Specify the slider's height
var sliderheight="99px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=2
//configure background color:
slidebgcolor=""

//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
leftrightslide[1]='<a href="http://"><img src="slideshow/16.jpg" border=0></a>'
leftrightslide[2]='<a href="http://"><img src="slideshow/17.jpg" border=0></a>'
leftrightslide[3]='<a href="http://"><img src="slideshow/18.jpg" border=0></a>'
leftrightslide[4]='<a href="http://"><img src="slideshow/19.jpg" border=0></a>'
leftrightslide[5]='<a href="http://"><img src="slideshow/20.jpg" border=0></a>'
leftrightslide[6]='<a href="http://"><img src="slideshow/21.jpg" border=0></a>'
leftrightslide[7]='<a href="http://"><img src="slideshow/22.jpg" border=0></a>'
leftrightslide[8]='<a href="http://"><img src="slideshow/23.jpg" border=0></a>'
leftrightslide[9]='<a href="http://"><img src="slideshow/24.jpg" border=0></a>'
leftrightslide[10]='<a href="http://"><img src="slideshow/25.jpg" border=0></a>'
leftrightslide[11]='<a href="http://"><img src="slideshow/26.jpg" border=0></a>'
leftrightslide[12]='<a href="http://"><img src="slideshow/27.jpg" border=0></a>'
leftrightslide[13]='<a href="http://"><img src="slideshow/28.jpg" border=0></a>'
leftrightslide[14]='<a href="http://"><img src="slideshow/29.jpg" border=0></a>'
leftrightslide[15]='<a href="http://"><img src="slideshow/30.jpg" border=0></a>'

//Specify gap between each image (use HTML):
var imagegap=""

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap=0


////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=slidespeed
leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>')
var actualwidth=''
var cross_slide, ns_slide

function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth+slideshowgap+"px"
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+slideshowgap
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
lefttime=setInterval("slideleft()",30)
}
window.onload=fillup

function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"

if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"

}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+slideshowgap

if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+slideshowgap
}
}


if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>')
write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>')
write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}
</script>
"


-------------
Administrator of Network Communications.
http://www.picocanada.com
E. Grosser


Posted By: 123Simples
Date Posted: 14 April 2008 at 12:25pm
That's interesting because although you cannot see the images in the bottom of the page, if you hover your mouse there, the scrolling images at the top STOP as they do if you hover on them

I would assume that it is because you are trying to place the script in two different places on the same document. Normally, (unless I'm wrong) , a javascript function would appear once, and then you would add a second link to that script elsewhere on the page, not the whole function again


-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: Athex
Date Posted: 16 April 2008 at 3:26am
well i want different pictures for the second one however.

-------------
Administrator of Network Communications.
http://www.picocanada.com
E. Grosser


Posted By: 123Simples
Date Posted: 16 April 2008 at 2:59pm
Originally posted by Athex Athex wrote:

well i want different pictures for the second one however.


It looks like you have sorted it already Wink


-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: wenkang
Date Posted: 06 August 2008 at 7:12am
Hi,guys.I'd like to give you some help.
Noticed that there are many people having trouble with writting good quality XHTML/CSS/JS code, we think you may have interests in the one of the services we offer.(such as http://xhtml.WebOutsourcingServices.com - PSD to HTML )
You can learn more about us at: http://forums.webwiz.net/dhttp:/xhtml.WebOutsourcingServices.com -

http://forums.webwiz.net/dhttp:/xhtml.WebOutsourcingServices.com - http://xhtml.WebOutsourcingServices.com

Thanks.Good lucky.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net