Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell drive driver drivers email error ethernet excel firefox firefox 3 freeze hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook 2007 outlook express partition password problem router slow software sound trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Need help with forms


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
rschlueter's Avatar
Computer Specs
Junior Member with 5 posts.
 
Join Date: Apr 2007
Experience: Intermediate
01-May-2007, 10:50 AM #1
Need help with forms
I am having trouble straightening out the html for this form. It won't validate as is. I need an action statement but am unsure just how to do it. There are also a couple of 's out of place.
<table align="center" bgcolor="#ffa000" border="0" cellpadding="3" cellspacing="0" style="border: white outset 2px;" width="400">
<form name="_slideShow">
<input type="Hidden" name="currSlide" value="0">
<input type="Hidden"name="delay">
<tr>
<td>
<table border="0" bgcolor="#fcf9e8" cellpadding="0" cellspacing="0" style="border: white inset 2px;" width="100%"><tr><td align="center">
<a href="javascript:;" onclick="startSS()"><img src="djschlueter_photos/toolplay.gif" width="30" height="32" alt="" border="0"></a>
<a href="javascript:;" onclick="stopSS()"><img src="djschlueter_photos/toolstop.gif" width="30" height="32" alt="" border="0"></a>
<img src="djschlueter_photos/toolsep.gif" width="5" height="32" alt="" border="0">
<a href="javascript:;" onclick="prevSS()"><img src="djschlueter_photos/toolprev.gif" width="30" height="32" alt="" border="0"></a>
<a href="javascript:;" onclick="nextSS()"><img src="djschlueter_photos/toolnext.gif" width="30" height="32" alt="" border="0"></a>
<img src="djschlueter_photos/toolsep.gif" width="5" height="32" alt="" border="0">
<a href="javascript:;" onclick="zoom(zW, zH)"><img src="djschlueter_photos/toolin.gif" width="30" height="32" alt="" border="0"></a>
<a href="javascript:;" onclick="zoom(-zW, -zH)"><img src="djschlueter_photos/toolout.gif" width="30" height="32" alt="" border="0"></a>
<img src="djschlueter_photos/toolsep.gif" width="5" height="32" alt="" border="0">
<a href="javascript:;" onclick="zoom('')"><img src="djschlueter_photos/toolreset.gif" width="30" height="32" alt="" border="0"></a>
<select name="wichIm" style="width: 100%; font-size: 10px;" onchange="selected(this.options[this.selectedIndex].value)">
</select>
</td></tr></table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" style="border: white inset 2px;"><tr><td><img name="stage" border="0" src="wmschluetersr/001.jpg" style="filter: revealtrans(); font-size:12;"></td></tr></table>
</td>
</tr>
</form>
</table>


If you need to see the entire page you can view it at http://schlueters.100webspace.net/photostemplate.html[/url]http://schlueters.100webspace.net/photostemplate.html

If I understand it correctly the action should point to a url but in this case it is a script on the same page. Any help would be greatly appreciated. Thanks in advance.

Bob
Sequal7's Avatar
Computer Specs
Distinguished Member with 2,369 posts.
 
Join Date: Apr 2001
Location: Around the corner!
Experience: Including today?
01-May-2007, 12:38 PM #2
Need to see the javascript source to get it to work for you...Can you post that, your link isn't valid to the site.
rschlueter's Avatar
Computer Specs
Junior Member with 5 posts.
 
Join Date: Apr 2007
Experience: Intermediate
01-May-2007, 01:21 PM #3
Here's the whole page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Slideshow of William Schlueter Sr</title>

<script type="text/javascript">
<!--
/*
SlideShow. Written by PerlScriptsJavaScripts.com
Copyright http://www.perlscriptsjavascripts.com
Free and commercial Perl and JavaScripts
*/

// transition effect. number between 0 and 23, 23 is random effect
effect = 23;

// transition duration. number of seconds effect lasts
duration = 1.5;

// seconds to diaply each image?
display = 4;

// width of stage (first image)
oW = 640
// height of stage
oH = 480
// zoom width by (add or subtracts this many pixels from image width)
zW = 40;

// zoom height by
zH = 30;

// path to image/name of image in slide show. this will also preload all images
// each element in the array must be in sequential order starting with zero (0)
SLIDES = new Array();

SLIDES[0] = ["wmschluetersr/001.jpg", "William Schlueter sr Robert and Ralph Schlueter(grandsons)"];
SLIDES[1] = ["wmschluetersr/002.jpg", "William Schlueter Sr and William Jr and Wilbur Schlueter"];
SLIDES[2] = ["wmschluetersr/003.jpg", "William Schlueter Sr"];
SLIDES[3] = ["wmschluetersr/004.jpg", "William Schlueter Sr and wife Lizzie Schulz Schlueter"];
SLIDES[4] = ["wmschluetersr/005.jpg", "William Schlueter Sr and Lizzie Schulz Schlueter"];
SLIDES[5] = ["wmschluetersr/006.jpg", "William Schlueter Sr and coworkers (Willliam was a plumber)"];
SLIDES[6] = ["wmschluetersr/007.jpg", "William Schlueter Sr and Lizzie Schulz Schlueter"];
SLIDES[7] = ["wmschluetersr/008.jpg", "William sr, Wm jr, Lizzie, Lena and Wilbur"];
SLIDES[8] = ["wmschluetersr/009.jpg", "William Schlueter Sr"];
SLIDES[9] = ["wmschluetersr/011.jpg", " William and Lizzie and ?, ?"];
SLIDES[10] = ["wmschluetersr/012.jpg", "William Schlueter Sr, Wm. Jr and Wilbur"];
SLIDES[11] = ["wmschluetersr/014.jpg", "William Sr, Wm Jr, Elizabeth, and ? ? ?"];
SLIDES[12] = ["wmschluetersr/017.jpg", "William Schlueter Sr"];
SLIDES[13] = ["wmschluetersr/021.jpg", "William Sr, Wm Jr, Elizabeth, Dave, Bob, and Ralph"];
SLIDES[14] = ["wmschluetersr/022.jpg", "William Sr, Lizzie Schulz Schlueter"];
// end required modifications

S = new Array();
for(a = 0; a < SLIDES.length; a++){
S[a] = new Image(); S[a].src = SLIDES[a][0];
}
// -->
</script>

</head>

<body>

<table align="center" bgcolor="#ffa000" border="0" cellpadding="3" cellspacing="0" style="border: white outset 2px;" width="400">
<form name="_slideShow">
<input type="Hidden" name="currSlide" value="0">
<input type="Hidden"name="delay">
<tr>
<td>
<table border="0" bgcolor="#fcf9e8" cellpadding="0" cellspacing="0" style="border: white inset 2px;" width="100%"><tr><td align="center">
<a href="javascript:;" onclick="startSS()"><img src="djschlueter_photos/toolplay.gif" width="30" height="32" alt="" border="0"></a>
<a href="javascript:;" onclick="stopSS()"><img src="djschlueter_photos/toolstop.gif" width="30" height="32" alt="" border="0"></a>
<img src="djschlueter_photos/toolsep.gif" width="5" height="32" alt="" border="0">
<a href="javascript:;" onclick="prevSS()"><img src="djschlueter_photos/toolprev.gif" width="30" height="32" alt="" border="0"></a>
<a href="javascript:;" onclick="nextSS()"><img src="djschlueter_photos/toolnext.gif" width="30" height="32" alt="" border="0"></a>
<img src="djschlueter_photos/toolsep.gif" width="5" height="32" alt="" border="0">
<a href="javascript:;" onclick="zoom(zW, zH)"><img src="djschlueter_photos/toolin.gif" width="30" height="32" alt="" border="0"></a>
<a href="javascript:;" onclick="zoom(-zW, -zH)"><img src="djschlueter_photos/toolout.gif" width="30" height="32" alt="" border="0"></a>
<img src="djschlueter_photos/toolsep.gif" width="5" height="32" alt="" border="0">
<a href="javascript:;" onclick="zoom('')"><img src="djschlueter_photos/toolreset.gif" width="30" height="32" alt="" border="0"></a>
<select name="wichIm" style="width: 100%; font-size: 10px;" onchange="selected(this.options[this.selectedIndex].value)">
</select>
</td></tr></table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" style="border: white inset 2px;"><tr><td><img name="stage" border="0" src="wmschluetersr/001.jpg" style="filter: revealtrans(); font-size:12;"></td></tr></table>
</td>
</tr>
</form>
</table>

<script type="text/javascript">
<!--

f = document._slideShow;
n = 0;
t = 0;

document.images["stage"].width = oW;
document.images["stage"].height = oH;
f.delay.value = display;

// add image numbers to select menu
f.wichIm.options.length = 0;
for(i in SLIDES){
f.wichIm.options[i] = new Option(SLIDES[i][1],i);
}

function startSS(){
t = setTimeout("runSS(" + f.currSlide.value + ")", 1 * 1);
}

function runSS(n){
n++;
if(n >= SLIDES.length){
n = 0;
}
document.images["stage"].src = S[n].src;
if(document.all && navigator.userAgent.indexOf("Opera") < 0 && navigator.userAgent.indexOf("Windows") >= 0){
document.images["stage"].style.visibility = "hidden";
document.images["stage"].filters.item(0).apply();
document.images["stage"].filters.item(0).transition = effect;
document.images["stage"].style.visibility = "visible";
document.images["stage"].filters(0).play(duration);
}
f.currSlide.value = n;
f.wichIm[n].selected = true;
t = setTimeout("runSS(" + f.currSlide.value + ")", f.delay.value * 1000);
}

function stopSS(){
if(t){
t = clearTimeout(t);
}
}

function nextSS(){
stopSS();
n = f.currSlide.value;
n++;
if(n >= SLIDES.length){
n = 0;
}
if(n < 0){
n = SLIDES.length - 1;
}
document.images["stage"].src = S[n].src;
f.currSlide.value = n;
f.wichIm[n].selected = true;
if(document.all && navigator.userAgent.indexOf("Opera") < 0 && navigator.userAgent.indexOf("Windows") >= 0){
document.images["stage"].style.visibility = "hidden";
document.images["stage"].filters.item(0).apply();
document.images["stage"].filters.item(0).transition = effect;
document.images["stage"].style.visibility = "visible";
document.images["stage"].filters(0).play(duration);
}
}

function prevSS(){
stopSS();
n = f.currSlide.value;
n--;
if(n >= SLIDES.length){
n = 0;
}
if(n < 0){
n = SLIDES.length - 1;
}
document.images["stage"].src = S[n].src;
f.currSlide.value = n;
f.wichIm[n].selected = true;

if(document.all && navigator.userAgent.indexOf("Opera") < 0 && navigator.userAgent.indexOf("Windows") >= 0){
document.images["stage"].style.visibility = "hidden";
document.images["stage"].filters.item(0).apply();
document.images["stage"].filters.item(0).transition = effect;
document.images["stage"].style.visibility = "visible";
document.images["stage"].filters(0).play(duration);
}
}

function selected(n){
stopSS();
document.images["stage"].src = S[n].src;
f.currSlide.value = n;

if(document.all && navigator.userAgent.indexOf("Opera") < 0 && navigator.userAgent.indexOf("Windows") >= 0){
document.images["stage"].style.visibility = "hidden";
document.images["stage"].filters.item(0).apply();
document.images["stage"].filters.item(0).transition = effect;
document.images["stage"].style.visibility = "visible";
document.images["stage"].filters(0).play(duration);
}
}

function zoom(dim1, dim2){
if(dim1){
if(document.images["stage"].width < oW){
document.images["stage"].width = oW;
document.images["stage"].height = oH;
} else {
document.images["stage"].width += dim1;
document.images["stage"].height += dim2;
}
if(dim1 < 0){
if(document.images["stage"].width < oW){
document.images["stage"].width = oW;
document.images["stage"].height = oH;
}
}
} else {
document.images["stage"].width = oW;
document.images["stage"].height = oH;
}
}
// -->
</script>
</body>
</html>


Thanks for taking the time to help.

Bob
Sequal7's Avatar
Computer Specs
Distinguished Member with 2,369 posts.
 
Join Date: Apr 2001
Location: Around the corner!
Experience: Including today?
01-May-2007, 01:38 PM #4
Ok, thanks, your missing the closing semicolon in these two lines withing your <head> </head> area
Code:
// width of stage (first image)
oW = 640
// height of stage
oH = 480
so make them look like this;
Code:
// width of stage (first image)
oW = 640;
// height of stage
oH = 480;
That should fix it up..
rschlueter's Avatar
Computer Specs
Junior Member with 5 posts.
 
Join Date: Apr 2007
Experience: Intermediate
01-May-2007, 02:25 PM #5
thank you
Thanks a lot Sequal7. I really appreciate it.

Bob
Sequal7's Avatar
Computer Specs
Distinguished Member with 2,369 posts.
 
Join Date: Apr 2001
Location: Around the corner!
Experience: Including today?
01-May-2007, 05:26 PM #6
No problem, your welcome.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 07:51 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.