Wednesday, 4 September 2013

Amazing 3d rotating cloud


AMAIZING 3D TAGCLOUD

The most amazing 3d tag sphere is a very advance technology but you can develop your own 3D
sphere.



 To do this go to your website and add a web page name it as you like and design it as bellow


<head>
<style type="text/css" media="screen">
    body{
        font-family: Arial, "MS Trebuchet", sans-serif;
        background-color: black;
    }
    #list
    {
        margin-top:80px;
        margin-left:300px;
        height:400px;
        width:600px;
        overflow:hidden;
        position:relative;
        background-color: black;
    }
    #list ul,
    #list li
    {
        list-style:none;
        margin:0;
        padding:0;
    }
    #list a
    {
        position:absolute;
        text-decoration: none;
        color:#666;
        }
    #list a:hover{
        color: lime;
    }
</style>
<script src="jquery/tagcloud.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
    <form id="form1" runat="server">
    <center>
        <asp:Label ID="Label1" runat="server" Text="Amazing Cloud By Ajit" Style="color: #00FF00;
            font-size: xx-large; font-family: 'Cooper Black'"></asp:Label></center>
    <div id="list">
        <ul>
            <li><a href="#">asp.net</a></li>
            <li><a href="#">C#.net</a></li>
            <li><a href="#">sql server</a></li>
            <li><a href="#">AJAX</a></li>
            <li><a href="#">Jquery</a></li>
            <li><a href="#">HTML 5</a></li>
            <li><a href="#">JAVA Script</a></li>
        </ul>
    </div>
    <script type="text/javascript">
        $(document).ready(function () {
            var element = $('#list a');
            var offset = 0;
            var stepping = 0.03;
            var list = $('#list');
            var $list = $(list)
            $list.mousemove(function (e) {
                var topOfList = $list.eq(0).offset().top
                var listHeight = $list.height()
                stepping = (e.clientY - topOfList) / listHeight * 0.2 - 0.1;
            });
            for (var i = element.length - 1; i >= 0; i--) {
                element[i].elemAngle = i * Math.PI * 2 / element.length;
            }
            setInterval(render, 30);
            function render() {
                for (var i = element.length - 1; i >= 0; i--) {
                    var angle = element[i].elemAngle + offset;
                    x = 120 + Math.sin(angle) * 10;
                    y = 45 + Math.cos(angle) * 40;
                    size = Math.round(40 - Math.sin(angle) * 20);
                    var elementCenter = $(element[i]).width() / 2;
                    var leftValue = (($list.width() / 2) * x / 100 - elementCenter) + "px"
                    $(element[i]).css("fontSize", size + "pt");
                    $(element[i]).css("opacity", size / 100);
                    $(element[i]).css("zIndex", size);
                    $(element[i]).css("left", leftValue);
                    $(element[i]).css("top", y + "%");
                }
                offset += stepping;
            }
        });
    </script>
    </form>

</body>

No comments:

Post a Comment