开发者

How can I center an image in this kind of script?

开发者 https://www.devze.com 2022-12-28 00:36 出处:网络
I\'ve tried various approaches, I\'ve no clue how to do it without 开发者_JS百科destroying the script or rescripting it all.

I've tried various approaches,

I've no clue how to do it without 开发者_JS百科destroying the script or rescripting it all. Here's a link to the page: http://hem.bredband.net/noor/bildspelet.html

You need to click the edit button on the top left, put 2 URLs to pictures, take these e.g. http://barcelona.magicka-evropa.cz/images/fc-barcelona.jpg

http://tux.crystalxp.net/png/uttaresh-fc-barcelona-13276.png

You'll notice the pictures aren't centered.. I haven't put in any code to center it in the example.. How can i go about to do that?


It appears that you're using the jQuery Cycle Lite Plugin. If so, the plugin provides an event called "after" which you would want to listen to.

In that callback, you would want to check if the image is downloaded already or not. Once its downloaded, you would execute your logic to center the image.

0

精彩评论

暂无评论...
验证码 换一张
取 消