• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript - Automatically selection of links present on page

 
Pictor Pictor
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In javascript can we write one function which will select all links prsent on the page automatically after 15 seconds.

I have a HTML page which is having lots of links, if we select one link it will show a image assocated with that link.

Instead of selecting all links manually can we make it automatic by Javascript.

thanks
priyanshu
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Pictor Pictor",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean select and images. Have no clue what you want to happen.

You can play with document.links which is an array.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic