// JavaScript Document// propperly lifted from NealGrosskopf. com ;p// setting globals as far as i reconfunction gd(e) function gs(e) function gv(e) function dw(i) function ClearValue(value,theid) function goUrl(what) }function popit(id) else }// making the arrayvar response = new Array()response [0] = "Yes"response [1] = "No"response [2] = "Maybe"response [3] = "Ask Again Later"response [4] = "It Appears To Be So"response [5] = "Reply Is Hazy, Please Try Again Later"response [6] = "Yes, Definately"response [7] = "What Is It Your Really Want To Know"response [8] = "Outlook Is Good"response [9] = "My Sources Say No"response [10] = "My Sources Say No"response [11] = "Signs Point To Yes"response [12] = "Don't Count On It"response [13] = "Cannot Predict Now"response [14] = "As I See It, Yes"response [15] = "Better Not Tell You Now"response [16] = "Concentrate And Ask Again"//ze functionfunction AnswerQuestion()//lets naggif (lastChar =="?..." /> Magic 8 ball
headfoldtjap_mesplotchtextured.jpg
- my tweets -
An error occurred

Oops, an error seems to have occurred. We're sorry for any inconvenience this might have caused. If the error persists, feel free to tell us about it.

Magic 8 ball
Saturday, 24 July 2010 15:28
      

8

 
A fun little experiment involving some javascript to fetch a random item from an array of answers. No images were used, just some css3 styling and because I'm lazy like that I only did moz and webkit. Perhaps I'll do the proper css3 and opera later. And then there's IE... well I gues I really should have a look at the 9 beta version. I've also put everything inline so viewing the source will get u to the magic tho I must say that I'm using the scourcerer joomla plug and it's not really playing nice with JCE editor. Somehow lot's of html tags like paragraphs etc. get added every time I edit the stuff through the 'insert code' button. But besides all that formatting I must confess that this plug might become a defacto one for me. Then again, why issn't that code-in-post's stuff native for joomla or wordpress anyway.

 


Zocial_linkZ
 
U = @ 38.107.191.105