
The hard part is getting the image to go into the 'preview' box right in the middle. 'vertical-align: middle;' isn't working..hmm..
Hmm, I'll search through Habbo's CSS Files for the answer =D
Good luck with this project =]
REMOVED
Edited by jesus (Forum Super Moderator): Please do not have fonts in your signature which are over size 4.
I couldn't figure it out in CSS, so I thought up a workaround using javascript maths.
HTML Code:<script type="text/javascript"> <!-- function show_sticker(img) { var myImage = new Image(); myImage.name = "../"+img; myImage.src = "../"+img; height = myImage.height; padding = 150-height; padding2 = padding/2; document.getElementById("image").innerHTML = "<img src=\"../"+img+"\" alt=\""+img+"\" style=\"padding-top: "+padding2+"px;\" />" } --> </script>
Last edited by Invent; 23-07-2007 at 05:19 PM.
AJAX Store is going well, just setting up the 'information' part of the store. So that when you click a small image a larger preview appears, the price of the item, etc.
Also I've decided to use scriptaculous for the deletion of widgets/stickers, this is just so that the item fade's out and also it looks cool =D
Last edited by Invent; 23-07-2007 at 06:05 PM.
Put it online so I can see![]()
I would, but there is nothing to show atm lol.
Want to hide these adverts? Register an account for free!