Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Ezilon Directory   High Bandwidth Dedicated Servers   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 07-28-2004, 06:39 AM   #1 (permalink)
Inactive
 
Join Date: 06-27-04
Posts: 14
iTrader: 0 / 0%
Latest Blog:
None

jolene is liked by many
slide show...inserting image problem

Hi,
I was wondering how I should enter the name of my .jpg images in the following slide show array, if my image is called: f1.jpg

Pic[0] = 'slideshow2_1.jpg'

I have tried different positions and nothing works. ej.
Pic[0] = 'slideshow2_f1.jpg'
Thank you
jolene is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 07-28-2004, 09:39 AM   #2 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Wouldn't it just be Pic[0] = 'f1.jpg' ?
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-28-2004, 10:25 AM   #3 (permalink)
v7n Mentor
 
imaginemn's Avatar
 
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,941
iTrader: 0 / 0%
Latest Blog:
None

imaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to all
Send a message via MSN to imaginemn Send a message via Yahoo to imaginemn Send a message via Skype™ to imaginemn
The images should not matter. Here is a typical array.

[code:1:4fb09d101d]pic[0] = '1.gif';
pic[1] = '2.gif';
pic[2] = '3.gif';[/code:1:4fb09d101d]

OR

[code:1:4fb09d101d]pic = new Array("1.gif","2.gif","3.gif")[/code:1:4fb09d101d]

It really depends on the code and how you are calling the array. There are so many ways to do this.

Post the rest of the javascript code and I can see what is wrong with it or you can try the following. (Replace the images with your own.)

[code:1:4fb09d101d]<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
NewImg = new Array ("images/1.gif","images/2.gif","images/3.gif");
var ImgNum = 0;
var ImgLength = NewImg.length - 1;

//Time delay between Slides in milliseconds
var delay = 3000;
var lock = false;
var run;
function nextImg(direction) {
if (document.images) {
ImgNum = ImgNum + direction;
if (ImgNum > ImgLength) {
ImgNum = 0;
}
if (ImgNum < 0) {
ImgNum = ImgLength;
}
document.slideshow.src = NewImg[ImgNum];
}
}

function auto() {
if (lock == true) {
lock = false;
window.clearInterval(run);
} else if (lock == false) {
lock = true;
run = setInterval("nextImg(1)", delay);
}
}
// End -->
</script>
</HEAD>
<BODY>

<img src="images/1.gif" name="slideshow">
<table>
<tr>
<td align="right"><a href="javascript:nextImg(-1)">Previous</a></td>
<td align="center"><a href="javascript:auto()">Auto/Stop</a></td>
<td align="left"><a href="javascript:nextImg(1)">Next</a></td>
</tr>
</table>[/code:1:4fb09d101d]

imaginemn
__________________
Imagine Creative Services
Design : Marketing : Multimedia : More
imaginemn is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-28-2004, 10:31 AM   #4 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
imaginemn - I'm pretty sure they just had the wrong image name in there.

The image is named f1.jpg and they were calling slideshow2_f1.jpg.

I could be wrong, though.
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-28-2004, 10:56 AM   #5 (permalink)
v7n Mentor
 
imaginemn's Avatar
 
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,941
iTrader: 0 / 0%
Latest Blog:
None

imaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to all
Send a message via MSN to imaginemn Send a message via Yahoo to imaginemn Send a message via Skype™ to imaginemn
Well that makes sense.

imaginemn
__________________
Imagine Creative Services
Design : Marketing : Multimedia : More
imaginemn is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-28-2004, 10:57 AM   #6 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help making a slide show with dreamweaver afreeland Web Design Lobby 2 08-28-2007 09:24 AM
Slide show transitions jolene Coding Forum 0 07-10-2004 10:04 AM
Fading Photos slide Show jolene Coding Forum 7 06-30-2004 04:46 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 02:03 PM.
© Copyright 2008 V7 Inc