Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
script to grab images in a page
Old 08-08-2006, 08:04 PM script to grab images in a page
Average Talker

Posts: 18
Name: heri
Location: montreal, canada
Trades: 0
hello

does anyone know of a script which can brag images url from a given webpage?

i was thinking of something like getElementsByTagName ('img') and then displaying all images in a iframe.


thanks
__________________
Working on
Please login or register to view this content. Registration is FREE
and
Please login or register to view this content. Registration is FREE
JoeWall is offline
Reply With Quote
View Public Profile Visit JoeWall's homepage!
 
 
Register now for full access!
Old 08-08-2006, 09:59 PM Re: script to grab images in a page
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
You can just use document.images, it's its own array. This will loop through and alert al the images on a page
Code:
for (i=0; i<document.images.length;i++) {
   alert(document.images[i].src)
}
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Reply     « Reply to script to grab images in a page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09428 seconds with 12 queries