Google

bLaugh JS For Your Delight

Thursday, November 16, 2006



If you don't know bLaugh, then maybe you'll interested on finding out :) bLaugh created a single-panel comicstrip involving events or things or people on the blogosphere :) which surely will brighten up your mornin ^^ they named themselves as The (un)Official Comic of the Blogosphere! :)

About 2 days ago, i found out that bLaugh provided an API for the geeks to play with ;) so as maybe i have the 'geek' spirit myself :P so i decided to make use of it :) and share it with everybody here :)

The script to use was simple, it was javascript, so you just hafta add these line to whereever you wanted this bLaugh comic strip to dock on your web-pages/blog :)

<script type="text/javascript" src="http://efendi.ning.com/bLaugh/displayComic.php"></script>


Now, the default is, the bLaugh Comic Strips will display in 3 column one, and there'll be 10 comics stripe.

But you can customize the script by adding some parameter ;)
There are (currently) 4 parameters you can add, which is : count, col, size

count is how much comic strip you wanted to display, the default is 10

col represents how much columns you wanted it to be displayed, like if you wanna put this on the sidebar maybe you wanted it to be just 1 column ;) the default is 3

size here is to adjust the image scaling size, the value would be in percentage as like if you wanted to have it half size then you entered 0.5 and so on ;) and 0.5 is default

So, with those parameters you can customized the script to looked like this:
<script type="text/javascript" src="http://efendi.ning.com/bLaugh/displayComic.php?count=5&col=2&size=0.3"></script>




Or you can have it to display the newest one like this :

<script type="text/javascript" src="http://efendi.ning.com/bLaugh/displayComic.php?count=1&size=1"></script>




No, why dont you try it yerself ;) if you have some trouble dont hesitate to contact me

Or maybe some suggestions, for further development ? ;P

6 comments:

Anonymous said...

This will be great for so many blogs on the internet. A great resource!

Efendi said...

hi anthony :) great to have you here ;)
and thanks the nice words :) glad you liked it ^^

Anonymous said...

OMG this is so cool! Truly! Just copy the script or do we need to register or something?

Thanks for sharing anyway. VERY USEFUL!!! Kudos to you (a blog-resource guru)

Efendi said...

yo teddy, yup just paste the javascript to wherever you wanted the comic strip to show ;) either on your sidebar or on your post :)

And it's free :) at least the script that i made is free :) as for the Comic by bLaugh, they provided it for free too :) AFAIK ;)

And hey, you made me flattered :P

Glad you like it ted ;)

p.s: spread the word ok :P

ochep said...

te hee...
see...

I was trying to this since long ago..
Thinking how to put it with AJAX,
already know how.. only need implementation...

but... sigh....
to lazy...
hahaha and this reveal everything in just simple steps.. gratz ^^

u trully put an effort on ur blog man. Nice ^____^

Efendi said...

hehehe... thx bro ^^

yeah, i know you can do it ;) you just NEED to DO it ;) hehehe ...

no more mapple donk ;P

About Me

My Photo
Efendi
An ordinary, a bit 'geeky' guy, who enjoy blogging about all unique things across the internet world. Blogs about the blogosphere, scripts, fun, games, interesting stuffs, etc. Currently staying and working in Singapore.
View my complete profile