Welcome to Geeklog Monday, October 14 2019 @ 04:20 am EDT

Geeklog Forums

My first GL site. East Cork Motorcycle Club


dokeeffe

Anonymous
excited
http://www.eastcorkmcc.com

Please let me know if I've made any obvious mistakes.....
Thanks,
Derek

Status: offline

dokeeffe

Forum User
Newbie
Registered: 15/10/06
Posts: 5
Heres a Link....
www.eastcorkmcc.com

Status: offline

dokeeffe

Forum User
Newbie
Registered: 15/10/06
Posts: 5
I added a nifty bit of javascript to a block on my site that pulls a random book from a list of my amazon associates links
Here is the javascript code if anyone wants to do the same.
Just change the IFRAME links to your amazon associate links.

<script language="JavaScript">
function random_text()
{};
var random_text = new random_text();

// Set the number of text strings to zero to start
var number = 0;

// Incremental list of all possible Text
random_text[number++] = "<iframe src='http://rcm-uk.amazon.co.uk/e/cm?t=eastcorkmotor-21&o=2&p=8&l=as1&asins=0760318026&fc1=000000&IS2=1&lt1=_blank&lc1=0000FF&bc1=FFFFFF&bg1=FFFFFF&f=ifr&npa=1' style='width:120px;height:240px;' scrolling='no' marginwidth='0' marginheight='0' frameborder='0'></iframe>"
random_text[number++] = "<iframe src='http://rcm-uk.amazon.co.uk/e/cm?t=eastcorkmotor-21&o=2&p=8&l=as1&asins=B000FWGVOM&fc1=000000&IS2=1&lt1=_blank&lc1=0000FF&bc1=FFFFFF&bg1=FFFFFF&f=ifr&npa=1' style='width:120px;height:240px;' scrolling='no' marginwidth='0' marginheight='0' frameborder='0'></iframe>"
random_text[number++] = "<iframe src='http://rcm-uk.amazon.co.uk/e/cm?t=eastcorkmotor-21&o=2&p=8&l=as1&asins=0760321132&fc1=000000&IS2=1&lt1=_blank&lc1=0000FF&bc1=FFFFFF&bg1=FFFFFF&f=ifr&npa=1' style='width:120px;height:240px;' scrolling='no' marginwidth='0' marginheight='0' frameborder='0'></iframe>"
random_text[number++] = "<iframe src='http://rcm-uk.amazon.co.uk/e/cm?t=eastcorkmotor-21&o=2&p=8&l=as1&asins=0760324743&fc1=000000&IS2=1&lt1=_blank&lc1=0000FF&bc1=FFFFFF&bg1=FFFFFF&f=ifr&npa=1' style='width:120px;height:240px;' scrolling='no' marginwidth='0' marginheight='0' frameborder='0'></iframe>"
random_text[number++] = "<iframe src='http://rcm-uk.amazon.co.uk/e/cm?t=eastcorkmotor-21&o=2&p=8&l=as1&asins=0736824383&fc1=000000&IS2=1&lt1=_blank&lc1=0000FF&bc1=FFFFFF&bg1=FFFFFF&f=ifr&npa=1' style='width:120px;height:240px;' scrolling='no' marginwidth='0' marginheight='0' frameborder='0'></iframe>"
random_text[number++] = "<iframe src='http://rcm-uk.amazon.co.uk/e/cm?t=eastcorkmotor-21&o=2&p=8&l=as1&asins=0760311846&fc1=000000&IS2=1&lt1=_blank&lc1=0000FF&bc1=FFFFFF&bg1=FFFFFF&f=ifr&npa=1' style='width:120px;height:240px;' scrolling='no' marginwidth='0' marginheight='0' frameborder='0'></iframe>"
random_text[number++] = "<iframe src='http://rcm-uk.amazon.co.uk/e/cm?t=eastcorkmotor-21&o=2&p=8&l=as1&asins=0736824391&fc1=000000&IS2=1&lt1=_blank&lc1=0000FF&bc1=FFFFFF&bg1=FFFFFF&f=ifr&npa=1' style='width:120px;height:240px;' scrolling='no' marginwidth='0' marginheight='0' frameborder='0'></iframe>"
random_text[number++] = "<iframe src='http://rcm-uk.amazon.co.uk/e/cm?t=eastcorkmotor-21&o=2&p=8&l=as1&asins=0760320322&fc1=000000&IS2=1&lt1=_blank&lc1=0000FF&bc1=FFFFFF&bg1=FFFFFF&f=ifr&npa=1' style='width:120px;height:240px;' scrolling='no' marginwidth='0' marginheight='0' frameborder='0'></iframe>"
random_text[number++] = "<iframe src='http://rcm-uk.amazon.co.uk/e/cm?t=eastcorkmotor-21&o=2&p=8&l=as1&asins=0736804773&fc1=000000&IS2=1&lt1=_blank&lc1=0000FF&bc1=FFFFFF&bg1=FFFFFF&f=ifr&npa=1' style='width:120px;height:240px;' scrolling='no' marginwidth='0' marginheight='0' frameborder='0'></iframe>"
random_text[number++] = "<iframe src='http://rcm-uk.amazon.co.uk/e/cm?t=eastcorkmotor-21&o=2&p=8&l=as1&asins=0760306605&fc1=000000&IS2=1&lt1=_blank&lc1=0000FF&bc1=FFFFFF&bg1=FFFFFF&f=ifr&npa=1' style='width:120px;height:240px;' scrolling='no' marginwidth='0' marginheight='0' frameborder='0'></iframe>"


// Create a random number with limits based on the number
// of possible random text strings
var random_number = Math.floor(Math.random() * number);

// Write out the random text to the browser
document.write(random_text[random_number]);
</script>

Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/05
Posts: 1569
Location:la rochelle, France
Thank you for sharing Dokeeffe.

I found some problems of alignment with FireFox 1.5 on your left block :



Nice theme.

::Ben




I'm available to customise your themes or plugins for your Geeklog CMS

All times are EDT. The time is now 04:20 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content