Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Mattastic #1
image array problem
Hi,
I'm trying to do an image slide show, when the next button is clicked it calls
the function below and increments the index of the image array by 1, and
changes the image. It doesnt seem to be working, can anybody help?
Thanks
--------------------------------------------------------------------------------
--
<script language="JavaScript">
var myimages = new Array("1.jpg","2.jpg","3.jpg","4.jpg");
var imgindex = 1;
document.images["img1"].src = myimages[imgindex];
function next()
{
imgindex = imgindex + 1;
}
</script>
Mattastic Guest
-
Convert image into byte array
I am trying to insert an image in the word document using RTF specifiations. The problem i am facing is that in RTF we have to provide a byte string... -
XML-RPC problem with array
Hello I have compiled my php with --with-xmlrpc option to use xmlrpc server. Everything works fine, but there is one problem. Array (indexed... -
Array problem
I thought I understood how to traverse an array, but I guess I was wrong. I have tried writing the code snippet below as: while, for, foreach... and... -
PHP array problem
Hi all, i'm having a problem concerning arrays. I am using an array that is stored in a mysql dbase. First i store this array in a variable like:... -
Array Problem - Help!
Im having a problem with an array that is put into a session. I want to be able to remove any element, but when I loop through to display them, it... -
Mick White #2
Re: image array problem
<script language="JavaScript">
var myimages = new Array("1.jpg","2.jpg","3.jpg","4.jpg");
var imgindex = 0;
function next(){
document.images["img1"].src = myimages[imgindex++];
if(imgindex==myimages.length){imgindex=0}
}
</script>
<a href="#" onclick="next()">Click</a>
Mick
Mattastic wrote:
> Hi,
>
> I'm trying to do an image slide show, when the next button is clicked it calls
> the function below and increments the index of the image array by 1, and
> changes the image. It doesnt seem to be working, can anybody help?
>
> Thanks
>
>
>
> --------------------------------------------------------------------------------
> --
> <script language="JavaScript">
> var myimages = new Array("1.jpg","2.jpg","3.jpg","4.jpg");
> var imgindex = 1;
> document.images["img1"].src = myimages[imgindex];
>
> function next()
> {
> imgindex = imgindex + 1;
> }
> </script>
>Mick White Guest
-
baby_girl_2004 #3
Re: image array problem
[L=Text]http://abcteach.com[/L][E=Text]booboo19912003@yahoo.com[/E]
hi would love to help but im new to making websites i start on a few but never finshed any!!
baby_girl_2004 Guest
-
?ark Templer #4
Re: image array problem
Meet My Evil Sister ^^^
<Correction> Post has Been Corrected
Post Name: __user__
Username:__baby_girl_2004__
Link 1: [url]http://www.abcteach.com/Forums[/url]
Link 2 : [email]booboo1992003@yahoo.com[/email]
?ark Templer Guest



Reply With Quote

