Randomize the display order of content on your page !

  • 3
  • Idea
  • Updated 10 years ago
I just thought I would share this nice little snippet of code I found the other day
that enables you to randomize the display order of arbitrary content on your page.

This script is useful when you wish to give certain contents equal visibility on the
page, so no one content always occupy the same spot.

To see how it works you can have a look at my Helderberg site: http://helderberg.cc/
Notice how the "places of interest" are randomly re-orderd every time the page is
refreshed or reloaded.

Random Content Order script:
http://www.dynamicdrive.com/dynamicin...
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
  • a bit random sometimes!

Posted 10 years ago

  • 3
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Boomer.. as always.. so full of good ideas and tips. Thanks for sharing!
Photo of Green Girl

Green Girl

  • 531 Posts
  • 12 Reply Likes
But we can no more upload JS now
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Let me explain Monica,

You may place JavaScript files on your site, but you may
not upload and host a .js file in your file manager.
This functionallity was removed for fear of uploading malicious files.

Ok... I've just seen that Monique has answerd you on another thread.
http://getsatisfaction.com/yola/topic...
Photo of HussainGardezi

HussainGardezi

  • 217 Posts
  • 0 Reply Likes
Hey Boomer Man,

Can you clear is this "Content Rotater" ?
i was searching for a good a auto content rotator.
How it Works ?

and one thing more is this full secure for Google Adsense ?

Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
adsense does the same thing anyway - there is no need to add it to google adverts.
Photo of HussainGardezi

HussainGardezi

  • 217 Posts
  • 0 Reply Likes
Actually, i mean if we use it, google will not disabled us ? so its secure for Google Tos or not ?
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
yes - its no problem. Google wont care if your using it or not.
Photo of HussainGardezi

HussainGardezi

  • 217 Posts
  • 0 Reply Likes
Can Any One Provide me "Fresh News Rotator" For My site ?
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
Hussain,

Can I just ask a question to help me understand what it is you are after?

Do you mean World news type headlines or do you mean Blog articles from around.

Do you want the headlines to be anyhting or limited to certain areas of interest?

I saw some stuff today on similar things and it may be relevant. Just let me know. OK?
Maybe we can help you here. I hope so.
Photo of HussainGardezi

HussainGardezi

  • 217 Posts
  • 0 Reply Likes
Peter Thanks,
actully, i want News and Conent Snips, which rotate on Keywords which i give, like i give a "American White House News" So there publish ONLY white house news and Content, can you provide me "Cotent" and "News" snippts, which rotate our news and content daily, i think its really help for Seo.

and speacily i want news from famous news paper and content like "Ny Times" "BBC" "CNN" and all other Major Sources :)

i am really thankful to you.
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
Can you give me a day to find the best alternatives for your application? I think this is quite possible using aggregators and feeds.

I will post back here with any good news. OK?
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
Hussain,

here is some code for a NEWS feed supplied by Yahoo. It's quite good in content and is sourced from the big syndicators of news.

Reference: http://www.tickermyfeed.com/ticker_ne...
Is this of any use or are you looking for something else? i'm happy to keep looking for other types if you like.

<!--
<iframe src="http://tickermyfeed.com/feed.php?P2Jv..." marginwidth="100" marginheight="22" height="98" width="212" scrolling="no" align="middle" border="0" frameborder="0">
Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>
-->
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
Here's something else which provide multi items and greater detail:
http://www.dynamicdrive.com/dynamicin...

There are two in this selection and you need to provide your web-page to obtain a key-code and then you can copy the HTML and embed it on your page.

I think this is a fairly reasonable selection of options.

If you need anything else please ask.
Photo of HussainGardezi

HussainGardezi

  • 217 Posts
  • 0 Reply Likes
Hey Peter thanks but it seem On "World News" but i want that which Work on "Keywords or pharas "
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
I think I can find something with that Hussain. Thanks for getting back to me it helps a lot.

I will do this tomorrow and post back here. Have a good evening.
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
Boomer,

Apologies for side-tracking your thread.

Sok-dii!