FranPR9 / light_saber

light saber that follows cursor for html documents
MIT License
5 stars 0 forks source link

[Do you want this?] Inserting HTML programmatically #2

Open hassanshaikley opened 8 years ago

hassanshaikley commented 8 years ago

It might be cool to insert the HTML programmatically as opposed to asking programmers to do it themselves.

Something like:

$('body').append("<img src="img/lightsaber.png" class="lightsaber" style="position:absolute; display:none;"></img>");

Or at least write a function that does that, that accepts different options.

hassanshaikley commented 8 years ago

Also if this library is able to give my game a cool looking mouse I'll be down to use it.

So like for my browser game if I can switch out the mouse with this library that would be pretty cool, with maybe some image that I supply it.

FranPR9 commented 8 years ago

Updated: lightsaber added dynamically without html element. image can be changed. check README