English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories



Picture Changes In INTERVALS














Ok this is suppose to change a picture back and forth but how do i do it? i can put the current picture on but what about the picture that it is suppose to change to???

2007-02-10 07:11:42 · 3 answers · asked by SaY wHaT >? 2 in Computers & Internet Programming & Design

3 answers

rookie!

has unbalanced quotes!

while I've got you attention! don't try to debug javascript in IE!

firefox (or safari or opera or almost any other browser) does error messages better!

in firefox you would be able to see what is really happening!
and with firefox+firebug you will see the underworld of javascript

2007-02-10 07:38:43 · answer #1 · answered by jake cigar™ is retired 7 · 0 1

The pictures should be in the same directory as your html file (the file containing this source). The names of the pictures should be pic1.jpg, pic2,jpg, pic3.jpg .... pic10.jpg. The scripts sifts through 10 images. You can increase / decrease it by setting the numImages=10 to howmuch ever you want.

There was some missing text in your question, with ... in it, I have inserted it. Also, there was no opening quote for the id attribute in the




Picture Changes In INTERVALS










2007-02-11 21:56:16 · answer #2 · answered by razeemarikar 2 · 0 0

You should have picture names available in JavaScript which you want to replace. After interval, use document.getElementById('theImg').src = "new Img";
It will work.

2007-02-12 23:41:22 · answer #3 · answered by Atif Majid 3 · 0 0

fedest.com, questions and answers