Free Web Hosting with Website Builder
 
 
 
» News Archives - Some programming stuff released now

13 Mar 2008 01:51 pm


Some programming stuff released now

I've implemented a Random comic button in the comic page, and posted the very simple source code at the forums. Here is the posts contents:

I've seen a few websites with a button that goes to a random comic. This is a simple script which creates a function which, when called, goes to a random comic. It is designed to be put in the Comic Page, but could be altered to go to more pages. It's the first Javascript script I've ever written, (I'm more of a C++ person myself :P).
Sorry if this has been demonstrated already and I missed it. I searched the word "Random", but nothing came up so...

Put this at the top of your Comic Page template.


And put this wherever you want the Random button to appear. This is very simple, and could be changed easily, so long as the function "GoToRandomPage()" is called :P
< Random >










Powered by Smackjeeves.com
Site design by Enkida, modified by Jason Morley