Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Scripting > Javascript   »   How can i randomise images in a site to be linked via html coding for another site?

Answer this Question
Ask about Javascript
 
Question Tools Search this Question Display Modes
Question
 
 
#1  
Old Aug 4, 2007, 02:22 AM
sanjidas
New Member
sanjidas is offline
 
Join Date: Aug 2007
Location: Dhaka
Posts: 2
sanjidas See this member's comment history on his/her Profile page.
How can i randomise images in a site to be linked via html coding for another site?

Hi,

I am mesmerised. How do Flickr, mybloglog, facebook and numerous other sites update their badges eberytime the information is updated? Someone told me it is done with js.
I hava a wordpress.com blog, which means i am not allowed to use javascript there. so i have to link my images updated in another site only via html in order for them to show up in my blog.

Also is it possible to randomise images in another site and link to it via html for my wordpress.com blog? so that, for example, i can have one image at morning and another at evening?

Thanks in advance!

Reply With Quote
 
     

Answers
 
 
Old Aug 7, 2007, 06:17 AM   #2  
retsoksirhc
Senior Member
retsoksirhc is offline
 
retsoksirhc's Avatar
 
Join Date: Mar 2004
Location: Michigan
Posts: 745
retsoksirhc See this member's comment history on his/her Profile page.
Send a message via AIM to retsoksirhc
Quote:
Originally Posted by sanjidas
Hi,

I am mesmerised. How do Flickr, mybloglog, facebook and numerous other sites update their badges eberytime the information is updated? Someone told me it is done with js.
I hava a wordpress.com blog, which means i am not allowed to use javascript there. so i have to link my images updated in another site only via html in order for them to show up in my blog.

Also is it possible to randomise images in another site and link to it via html for my wordpress.com blog? so that, for example, i can have one image at morning and another at evening?

Thanks in advance!
You mean like, where you have your picture posted somewhere, and it changes?
For instance, on your forum signature, every time a page loads, it will show a different picture?

I've heard of people doing it with PHP before, but I don't think I've seen it with Javascript. Basically how people do it with PHP is to set up PHP to handle the JPEG or other image formats, then use either filesystem functions to read the images in binary, and transfer them, with the correct Content-type headers, or they do it with the Image Library functions (I think its gdd), and the correct content-type headers.
  Reply With Quote
 
     
 
 
Old Aug 8, 2007, 04:50 AM   #3  
sanjidas
New Member
sanjidas is offline
 
Join Date: Aug 2007
Location: Dhaka
Posts: 2
sanjidas See this member's comment history on his/her Profile page.
that's bad news for me, if it isn't js at all.

is it the same story for Online Dictionary, Encyclopedia and Thesaurus. Free access.

i mean, all you have to do is paste some html code from them and you have fresh content from them everyday on your blog. is that also done without js?

and also there's no way i can use js to control stuff in one site and make it appear as per the specifications in another site via html?

ah, that's bad news for me.

oops, i guess i said that already!

umm, is there any php-dedicated site that delivers free php codes to make stuff bahave that way?
  Reply With Quote
 
     
 
 
Old Aug 10, 2007, 06:29 AM   #4  
retsoksirhc
Senior Member
retsoksirhc is offline
 
retsoksirhc's Avatar
 
Join Date: Mar 2004
Location: Michigan
Posts: 745
retsoksirhc See this member's comment history on his/her Profile page.
Send a message via AIM to retsoksirhc
Ah, i see what you mean now. That can be done with javascript, yes.

To display different images at different times of they day, you could just the date functions from javascript. I don't work with it too often, so I don't remember specifically what they are, but you basically would just make it say somthing like

If the time of day is between 6AM and 12PM, load THIS into the page
Else, if the time of day is between 12PM and 8PM, load THIS into the page
Else, load THIS into the page

Sorry I can't be more specific than that.
  Reply With Quote
 
     
Answer this Question
Ask about Javascript


Question Tools Search this Question
Search this Question:

Advanced Search
Display Modes

 
Similar Sponsors

Similar Questions
Question Asker Topic Answers Last Post
Hello, I`m new to this site. crowman Introductions 6 Apr 29, 2007 06:46 PM
New to site Down and out Introductions 7 Mar 9, 2007 06:55 PM
How can I get nice thumbnail images for use on web site? RickJ Multimedia 3 Sep 21, 2006 12:28 PM
New web site - thumb images not displaying igilvarry Frontpage 1 Jun 11, 2006 10:27 PM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 02:59 PM.

Content Relevant URLs by vBSEO 3.0.0 RC6 © 2006, Crawlability, Inc.