Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is This Correct syntax ????

Status
Not open for further replies.

Yogi39

Technical User
Joined
Jun 20, 2001
Messages
273
Location
CA
for (i=0;i<leftrightslide.length;i++)
finalslide=finalslide+leftrightslide+&quot;&nbsp;&nbsp;&quot;

ieslider.onmouseover=new Function(&quot;ieslider.scrollAmount=0&quot;+&quot;;change(n,'img2')&quot;)

can I use the value of i to define image n in the above ?
 
I'll bet twenty bucks that you had a [ i ] (without the spacing) in your code there. In TGML that turns on italics!To prevent that from happening, always put [ code ] and [ /code ] (again, without the spacing) around your code snippets. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Code:
for (i=0;i<leftrightslide.length;i++)
finalslide=finalslide+leftrightslide[i]+&quot;  &quot;

ieslider.onmouseover=new Function(&quot;ieslider.scrollAmount=0&quot;+&quot;;change('n'[i],'img2')&quot;)

can I use the value of i to define image n in the above ?
 
hi Yogi39
could you please explain a little bit, what are you trying to do?
what is a purpose for this syntax? 'n'[ i ],

if you want to combine letter 'n' & i as a number you should write this way:
for (i=0;i<leftrightslide.length;i++){
finalslide=finalslide+leftrightslide+&quot; &quot;

ieslider.onmouseover=new Function(&quot;ieslider.scrollAmount=0&quot;+&quot;;change('n','img2')&quot;)}

if you would write the same but w/o brackets (&quot;{}&quot;) then i won't be defined or something like that..



ieslider.onmouseover=new Function(&quot;ieslider.scrollAmount=0&quot;+&quot;;change('n'&quot;+i+&quot;,'img2')&quot;)


Victor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top