balki
07-23-2011, 09:15 PM
I was impressed from this tutorial - http://www.dynamicdrive.com/dynamicindex4/imagebubbles.htm , and would like to use in my site. But I met difficulties.
You can see - http://souhssz.webnode.com/tjestova/brojach/ - that I can't remove li http://img851.imageshack.us/img851/8986/79814447.png, align icons to the center, and chose exact size before and after bubbled.
Can you help me with css, please :)
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<link href="http://files.probi.webnode.com/200000143-67c2a681bd/imgbubbles.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/*CSS for 2 demos on the page*/
#orbs li{
width: 100px; /*width of image container. Should be wider than contained images (before bubbling) */
height:100px; /*height of image container. Should be taller than contained images (before bubbling) */
}
#orbs li img{
width: 55px; /*width of each image before bubbling*/
height: 55px; /*height of each image*/
}
#squares li{
width: 45px; /*width of image container. Must be wider than contained images (before bubbling) */
height:40px; /*height of image container. Must be taller than contained images (before bubbling) */
}
#squares li img{
width: 31px; /*width of each image before bubbling*/
height: 31px; /*height of each image*/
}
</style>
<script type="text/javascript" src="http://files.probi.webnode.com/200000142-19a211a9be/imgbubbles.js">
/***********************************************
* Image Bubbles effect- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<script type="text/javascript">
jQuery(document).ready(function($){
$('ul#orbs').imgbubbles({factor:1.75}) //add bubbles effect to UL id="orbs"
$('ul#squares').imgbubbles({factor:2.5}) //add bubbles effect to UL id="squares"
})
</script>
<ul id="orbs" class="bubblewrap">
<li><a onclick="javascript:window.external.AddFavorite('http://souhssz.webnode.com/','СОУ Христо Смирненски');return false" rel="sidebar" name="Добавете сайта в Любими " title="СОУ Христо Смирненски" href="http://souhssz.webnode.com/"><img src="http://lh6.ggpht.com/_tFIGAJdkWQ8/TLtkBrMQOgI/AAAAAAAAAYs/iZcya-1qa5Q/Firefox-100%D1%85100.png" alt="Bookmark" /></a></li>
<li><a onclick="javascript:window.external.AddFavorite('http://souhssz.webnode.com/','СОУ Христо Смирненски');return false" rel="sidebar" name="Добавете сайта в Любими " title="СОУ Христо Смирненски" href="http://souhssz.webnode.com/"><img src="http://lh5.ggpht.com/_tFIGAJdkWQ8/TLtkCrgfkVI/AAAAAAAAAY0/L0Lg7CgHK-Y/Opera-100%D1%85100.png" alt="Add to ..." /></a></li>
<li><a onclick="javascript:window.external.AddFavorite('http://souhssz.webnode.com/','СОУ Христо Смирненски');return false" rel="sidebar" name="Добавете сайта в Любими " title="СОУ Христо Смирненски" href="http://souhssz.webnode.com/"><img src="http://lh5.ggpht.com/_tFIGAJdkWQ8/TLtkCEPRlBI/AAAAAAAAAYw/1M_6SyAqigM/IE-100%D1%85100.png" alt="Add to ..." /></a></li>
</ul>
You can see - http://souhssz.webnode.com/tjestova/brojach/ - that I can't remove li http://img851.imageshack.us/img851/8986/79814447.png, align icons to the center, and chose exact size before and after bubbled.
Can you help me with css, please :)
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<link href="http://files.probi.webnode.com/200000143-67c2a681bd/imgbubbles.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/*CSS for 2 demos on the page*/
#orbs li{
width: 100px; /*width of image container. Should be wider than contained images (before bubbling) */
height:100px; /*height of image container. Should be taller than contained images (before bubbling) */
}
#orbs li img{
width: 55px; /*width of each image before bubbling*/
height: 55px; /*height of each image*/
}
#squares li{
width: 45px; /*width of image container. Must be wider than contained images (before bubbling) */
height:40px; /*height of image container. Must be taller than contained images (before bubbling) */
}
#squares li img{
width: 31px; /*width of each image before bubbling*/
height: 31px; /*height of each image*/
}
</style>
<script type="text/javascript" src="http://files.probi.webnode.com/200000142-19a211a9be/imgbubbles.js">
/***********************************************
* Image Bubbles effect- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<script type="text/javascript">
jQuery(document).ready(function($){
$('ul#orbs').imgbubbles({factor:1.75}) //add bubbles effect to UL id="orbs"
$('ul#squares').imgbubbles({factor:2.5}) //add bubbles effect to UL id="squares"
})
</script>
<ul id="orbs" class="bubblewrap">
<li><a onclick="javascript:window.external.AddFavorite('http://souhssz.webnode.com/','СОУ Христо Смирненски');return false" rel="sidebar" name="Добавете сайта в Любими " title="СОУ Христо Смирненски" href="http://souhssz.webnode.com/"><img src="http://lh6.ggpht.com/_tFIGAJdkWQ8/TLtkBrMQOgI/AAAAAAAAAYs/iZcya-1qa5Q/Firefox-100%D1%85100.png" alt="Bookmark" /></a></li>
<li><a onclick="javascript:window.external.AddFavorite('http://souhssz.webnode.com/','СОУ Христо Смирненски');return false" rel="sidebar" name="Добавете сайта в Любими " title="СОУ Христо Смирненски" href="http://souhssz.webnode.com/"><img src="http://lh5.ggpht.com/_tFIGAJdkWQ8/TLtkCrgfkVI/AAAAAAAAAY0/L0Lg7CgHK-Y/Opera-100%D1%85100.png" alt="Add to ..." /></a></li>
<li><a onclick="javascript:window.external.AddFavorite('http://souhssz.webnode.com/','СОУ Христо Смирненски');return false" rel="sidebar" name="Добавете сайта в Любими " title="СОУ Христо Смирненски" href="http://souhssz.webnode.com/"><img src="http://lh5.ggpht.com/_tFIGAJdkWQ8/TLtkCEPRlBI/AAAAAAAAAYw/1M_6SyAqigM/IE-100%D1%85100.png" alt="Add to ..." /></a></li>
</ul>