Ask Experts Questions for FREE Help !
Ask
    sanjidas's Avatar
    sanjidas Posts: 2, Reputation: 1
    New Member
     
    #1

    Aug 4, 2007, 03:22 AM
    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!
    retsoksirhc's Avatar
    retsoksirhc Posts: 912, Reputation: 71
    Senior Member
     
    #2

    Aug 7, 2007, 07:17 AM
    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.
    sanjidas's Avatar
    sanjidas Posts: 2, Reputation: 1
    New Member
     
    #3

    Aug 8, 2007, 05:50 AM
    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?
    retsoksirhc's Avatar
    retsoksirhc Posts: 912, Reputation: 71
    Senior Member
     
    #4

    Aug 10, 2007, 07:29 AM
    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 something 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.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

How can I get nice thumbnail images for use on web site? [ 3 Answers ]

I want small, nice quality thumbnails of screenshots (for web use), like the ones here. My screen shot app gives me images of these dimensions and size: 1002x622, 200kb and 1002x992, 320kb I use PhotoshopElements to reduce them and optimize them for web use. Reducing them down to 370...

New web site - thumb images not displaying [ 1 Answers ]

I have just uploaded new web site - www.bridalsales.ie. As can be seen on the "Sale Preview" page some of the thumb images (9 out of 24) not displaying. However, all seems OK on my local copy launched from within Frontpage. I have double checked that all .JPG's have been uploaded. Looking for any...


View more questions Search