Jump to content

[SOLVED] HELP with a function - Should be a quick fix.


JSHINER

Recommended Posts

I am new to Javascript so please be kind  :)

 

I have the following:

document.images.photoslider.src=photos[which]

 

Which updates:

document.write(\'<img src="\'+photos[0]+\'" name="photoslider" border=0>\')

 

With the correct # inside of photos[0].

 

I would like a similar function that would update a link  <a href="\'+photos[0]+\"> the same way. Is there a way to do this?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.