PDA

View Full Version : Image Slideshow


Araich
07-05-2003, 10:08 AM
While I've got you here, just wanted to let you know:

I attempted to reply to the email you sent me earlier this week.
It was returned with a "fatal error".
Just thought you might want to know.

In my letter I asked how you achieved your slide show.
Is that a JavaScript that loads images sequentially from your root folder?

I have been doing my slide shows with the images embedded in Flash files (.swf)... tends to be big in file size and slow for dial-up users.
Any suggestions?

Thanks.

Robert

Thanks for the info about my email, I'm hoping it was just a temporary thing...

Yes, my slideshow is JavaScript driven. A mixture of my own code and rewritten exisiting code.

Here http://www.artwise.com.au/hague/auto.js

Feel free to take. I've named the images numerically to ease the organisation across the site. The code simply calls the image, preloading the following one as it goes.

The reason I went this way is precisely because I didn't want to force a download on a user. And also I've tried to keep it simple.
I never really finished the project, although it does function ok.

The fade is driven by IE and not seen by Mozilla users.

ArbitraryDesign
07-08-2003, 03:02 PM
Thanks very much, Robert.

Sorry it has taken me so long to respond to your post... been busy designing a web site for a friend.

It's just about finished: Exotic Lumber Inc. (http://www.arbitrarydesign.com/ExoticLumberSplash.html)
I designed the splash page and Flash site. The HTML site was his existing site.

Once I have finished tweaking the site, I will be sure to study your JavaScript slideshow. I'm very anxious to learn JavaScript and I appreciate your generosity in allowing me (and everyone else) to use your code.

Robert

Araich
07-08-2003, 05:58 PM
Here's an old favourite of mine for my index page:

<script>
<!--
if (window!= top)
top.location.href=location.href
// -->
</script>

Stick that between the <head> </head> tags, and your page will never get trapped inside someone elses frames.

Javascript is fairly easy, but my slideshow is a difficult place to start. I would suggest buying a book on it. It's the fastest way to learn, although there are some great online tutorials.

ArbitraryDesign
07-08-2003, 07:55 PM
When I said I wanted to "learn JavaScript", basically I meant I wanted to learn the basic commands so I know what to cut and paste and where spaces are allowed to go.

The idea of writing code does not excite me..lol
I know many people hate Flash, but I enjoy it as an artistic medium (I actually use Swish, not Flash).
Perhaps I shouldn't waste my time trying to get web design jobs... it seems like I am not really the right sort of mentality for it.

So..no JavaScript books for me, but I will probably peruse quite a few online tutorials, just to familiarize myself with the basic ideas and rules.

Thanks for the code snippet.

Robert