Ask Experts Questions for FREE Help!
Ask    ||    Answer
 
Advanced  
 

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?

 
Thread Tools Search this Thread Display Modes
Question
 
 
#1  
Old Aug 4, 2007, 03: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, 07:17 AM   #2  
Senior Member
retsoksirhc is offline
 
retsoksirhc's Avatar
 
Join Date: Mar 2004
Location: Michigan
Posts: 907
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, 05:50 AM   #3  
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, 07:29 AM   #4  
Senior Member
retsoksirhc is offline
 
retsoksirhc's Avatar
 
Join Date: Mar 2004
Location: Michigan
Posts: 907
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
 
     

Your Answer
Email me when someone replies to my answer
Join Login





Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

 
Similar Sponsors


Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Similar Threads
Hello, I`m new to this site.
(6 replies)
New to site
(7 replies)
How can I get nice thumbnail images for use on web site?
(3 replies)
New web site - thumb images not displaying
(1 replies)

Search this Thread

Advanced Search

Bookmarks

Sponsors



Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 03:26 PM.