<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>CSSReflex &#187; Tutorial</title> <atom:link href="http://www.cssreflex.com/tag/tutorial/feed" rel="self" type="application/rss+xml" /><link>http://www.cssreflex.com</link> <description>The CSSReflex blog covers all of Tutorials, Design News, Web Development, Showcases, Freebies, WordPress Tutorials And Blogger Templates.</description> <lastBuildDate>Wed, 08 Sep 2010 02:51:13 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=abc</generator> <item><title>How To Make a Drop Shadow Changer With jQuery and CSS3</title><link>http://www.cssreflex.com/2010/02/how-to-make-a-drop-shadow-changer-with-jquery-and-css3-2.html</link> <comments>http://www.cssreflex.com/2010/02/how-to-make-a-drop-shadow-changer-with-jquery-and-css3-2.html#comments</comments> <pubDate>Wed, 24 Feb 2010 14:19:37 +0000</pubDate> <dc:creator>Ahmed Hussein</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[AJAX]]></category> <category><![CDATA[CSS3]]></category> <category><![CDATA[drop shadow]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[HTML5]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Tutorial]]></category> <category><![CDATA[WebKit]]></category><guid isPermaLink="false">http://www.cssreflex.com/?p=1001</guid> <description><![CDATA[This is a Guest post by Ahmed Hussein, If you want to contribute feel free to contact me. Today we have a very cool and step-by-step tutorial on how to make a CSS3 drop shadow changer using Ajax and little bit of PHP/MySQL. You may ask yourself why I&#8217;m using PHP/MySQL in a CSS3 tutorial? [...]]]></description> <content:encoded><![CDATA[<p><em>This is a Guest post by <a href="http://zingyso.com/" target="_blank">Ahmed Hussein</a>, If you want to contribute feel free to <a href="http://cssreflex.com/contact/" target="_blank">contact me</a>.</em></p><p>Today we have a very cool and step-by-step tutorial on how to make a CSS3 drop shadow changer using Ajax and little bit of PHP/MySQL. You may ask yourself why I&#8217;m using PHP/MySQL in a CSS3 tutorial? and the answer is simple, to save the settings and fetch again.</p><blockquote><p><a href="http://zingyso.com/b/demo/cssreflex/" target="_blank"><strong>Demo</strong></a><br /> The Animation will only be viewable on Google Chrome and Safari 4+ because its based on WebKit.</p></blockquote><h2>What&#8217;s WebKit?</h2><p>WebKit is an impressive open source web browser engine. WebKit is also the name of the Mac OS X system framework version of the engine that&#8217;s used by Safari, Dashboard, Mail, and many other OS X applications. WebKit&#8217;s HTML and JavaScript code began as a branch of the KHML and KJS libraries from KDE. And it is currently supported by Google Chrome and Safari4+.</p><p>Here&#8217;s an image about what we will have at the end of this tutorial:</p><p><img class="alignnone" src="http://www.cssreflex.com/wp-content/uploads/2010/02/drop-shadow-changer-tut/stuf.png" alt="stuf How To Make a Drop Shadow Changer With jQuery and CSS3" width="623" height="558" title="How To Make a Drop Shadow Changer With jQuery and CSS3" /></p><p>Now let&#8217;s begin by building the main layout:</p><h2>The Body Styling</h2><p><code>body{<br /> margin:0;<br /> padding:0;<br /> }</code></p><p>We did nothing except, set the padding as zero as well as the margin.</p><h2>The Success Message Styling</h2><p><code>#success{<br /> background: #c8ffb4;<br /> width:500px;<br /> height:50px;<br /> border-radius: 5px;<br /> -moz-border-radius: 5px;<br /> -webkit-border-radius: 5px;<br /> font-weight:bold;<br /> padding-left:50px;<br /> font-family:Arial, Helvetica, sans-serif;<br /> color:#333;<br /> padding-top:25px;<br /> text-align:left;<br /> }</code></p><p>What we did up there is first, change the background to light green then, the width and the height next, the border radius and this is only available in CSS3, and basically what it does, that it&#8217;s making rounded corners, so if you&#8217;re going to increase the value of the radius, you will get more rounded corners. after that, nothing too fancy just basic stuff like font and padding.</p><h2>The Saving Button</h2><p><code>#save{<br /> background: url(../images/save.png) no-repeat;<br /> height:60px;<br /> width: 171px;<br /> border:none;<br /> cursor:pointer;<br /> cursor:hand;<br /> outline:none;<br /> }</code></p><p>First, We set the background, height, width and border Then, we set the cursor to pointer to let the mouse change when it&#8217;s over the button, next set the cursor again to hand to change the mouse to hand icon. After that, change the outline to none, because a lot of browsers shows outlines on buttons.</p><h2>The HTML5 Work</h2><p><code>&lt;!DOCTYPE html&gt;<br /> &lt;html&gt;<br /> &lt;head&gt;<br /> &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;<br /> &lt;title&gt;Drop Shadow Changer&lt;/title&gt;<br /> &lt;link rel="stylesheet" href="css/main.css"&gt;<br /> &lt;script src="js/jquery.js" type="text/javascript"&gt;&lt;/script&gt;<br /> &lt;script src="js/main.js" type="text/javascript"&gt;&lt;/script&gt;<br /> &lt;/head&gt;<br /> &lt;body&gt;<br /> &lt;br&gt;&lt;br&gt;&lt;br&gt;<br /> &lt;center&gt;<br /> &lt;div id="success"&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;<br /> &lt;div id="image"&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;<br /> &lt;table&gt;<br /> &lt;tr&gt;<br /> &lt;td&gt;Posission: &lt;/td&gt;<br /> &lt;td&gt;&lt;input type="Range" name="slider" id="slide" /&gt;&lt;/td&gt;<br /> &lt;td&gt;&lt;div id="nums"&gt;  &lt;/div&gt;&lt;/td&gt;<br /> &lt;/tr&gt;<br /> &lt;tr&gt;<br /> &lt;td&gt;Blur: &lt;/td&gt;<br /> &lt;td&gt;&lt;input type="Range" name="blure" id="blure" /&gt;&lt;/td&gt;<br /> &lt;td&gt;&lt;div id="blures"&gt;  &lt;/div&gt;&lt;/td&gt;<br /> &lt;/tr&gt;<br /> &lt;/table&gt;<br /> &lt;br&gt;<br /> &lt;div id="load"&gt;<br /> &lt;table&gt;<br /> &lt;tr&gt;<br /> &lt;td&gt;&lt;img src="images/load.gif"&gt;&lt;/td&gt;<br /> &lt;td&gt;Saving...&lt;/td&gt;<br /> &lt;/tr&gt;<br /> &lt;/table&gt;<br /> &lt;/div&gt;<br /> &lt;br&gt;&lt;input type="button" id="save" name="save"&gt;<br /> &lt;/center&gt;<br /> &lt;/body&gt;<br /> &lt;/html&gt;</code></p><p>Here&#8217;s the funny part, First i start the HTML page as HTML5 page by adding the <strong>!DOCTYPE html</strong> tag, then inside the head you will see two scripts tags, one of them is for including the jQuery and the other one is for including the main JavaScirpt file that we will made. And I included the style file we&#8217;ve made earlier.</p><p>Now take a look inside the body tag, Fist thing you will see is the success message div and we will hide this using jQuery, Next take a break line and you will see the image div that we will do all the work on just give it image as id to apply the style also we will need the id in the jQuery work. after that, take a break line and you will see a normal table but look closer you will find the magic.</p><p>First, we will ad a little td with one word inside <strong>Position</strong> underneath it you going to find normal html input but the type is different this time and it called <strong>Range</strong> and that gives you a slider controller with numeric value from -0 to 100 as default. So we will give this range input an id as <strong>slide</strong> because we will need this id in the JavaScript work. Now make another td and put a little div inside it and give it &#8220;nums&#8221; as id actually i don&#8217;t know why i called it like that but it&#8217;s okay, and inside this div we will but the numeric value of the position range input, then close the first TR.</p><p>Next, start another TR and make couple of TDs and inside the first one you going to see <strong>Blur</strong> because the CSS3 drop shadow is very customizable so you can adjust the position, blur and even the color. After that, make another td and inside it we will make another &#8220;Range/Slider&#8221; input and give it blure as id and i know it&#8217;s blur not &#8220;blure&#8221; :P. Then, do the same as the last time by making a little div and give it an id of blures. Close the TR and The whole table and let&#8217;s do something new.</p><p>Now make a little div and give it load as id inside this div we will add loading image that i created at http://www.ajaxload.info , and &#8220;saving&#8221; word. and we will hide this div using jQuery and will show it when we press save.</p><p>Now just add normal button input but give it save as id to apply the style and we will need this in the JavaScript, too.<br /> Now after doing all of this you&#8217;re done with the main layout. Now Let&#8217;s do the JavaScript work</p><h2>The JavaScript Work</h2><p><code>//----------------------------------------+<br /> //Code by Ahmed Hussein For CssReflex.com |<br /> //Follow on Tiwtter @Valodes              |<br /> //Check Blog @ http://www.zingyso.com/b   |<br /> //----------------------------------------+<br /> $(document).ready(function(){<br /> var pos = $("#slide").val();<br /> var blu = $("#blure").val();<br /> $('#load').hide();<br /> $("div#nums").html(pos);<br /> $("div#blures").html(blu);<br /> $("#success").hide();<br /> $("#image").css({'-webkit-box-shadow': pos+"px "+pos+"px "+blu+"px "+"#666"});<br /> $("#slide").change(function(){<br /> var num = $("#slide").val();<br /> var blu = $("#blure").val();<br /> $("div#nums").html(num);<br /> $("#image").css({'-webkit-box-shadow': num+"px "+num+"px "+blu+"px "+"#666"});<br /> });<br /> $("#blure").change(function(){<br /> var num = $("#slide").val();<br /> var blu = $("#blure").val();<br /> $("div#blures").html(blu);<br /> $("#image").css({'-webkit-box-shadow': num+"px "+num+"px "+blu+"px "+"#666"});<br /> });<br /> $('#save').click(function(){<br /> var num = $("#slide").val();<br /> var blu = $("#blure").val();<br /> $.ajax({<br /> url: "action.php",<br /> type: "POST",<br /> data: {pos: $("#slide").val(), blu: blu = $("#blure").val()},<br /> success: function(data){<br /> $("#success").html(data);<br /> $("#success").slideDown(400).delay(2000).slideUp(400);<br /> }<br /> });<br /> });<br /> $("#load").ajaxStart(function(){<br /> $(this).show();<br /> });<br /> $("#load").ajaxSuccess(function(){<br /> $(this).hide();<br /> });<br /> });</code></p><p>Let me explain what we are doing here, first of all this is jQuery not pure JavaScirpt. Now to start jQuery code you may do this inside &#8220;script&#8221; or inside normal .js page and this&#8217;s what i&#8217;m doing here.<br /> At the start of any jQuery code you have to put the following code:</p><p><code>$(document).ready(function(){//Your code here });</code></p><p>replace &#8220;//your code here&#8221; with your own code, now:</p><p><code>var pos = $("#slide").val();<br /> var blu = $("#blure").val();</code></p><p>Here we made two variables the first one &#8220;pos&#8221; = to the slide value, &#8220;#slide&#8221; is like document.getElementById but we replace all of this with just a little hash tag &#8220;#&#8221;. the second variable blu = to the blure val. just to know &#8220;.val()&#8221; is returning the value of an element.<br /> <code>$("div#nums").html(pos);<br /> $("div#blures").html(blu);<br /> </code></p><p>Now the first line here we changing what&#8217;s inside the div nums to html contents using the .html() function which is showing html elements normal without changing them to text. But you can show the contents as text by using .text() function.</p><p><code>$("#success").hide();</code></p><p>Now we just hid the success message using .hide() function.</p><p><code>$("#image").css({'-webkit-box-shadow': pos+"px "+pos+"px "+blu+"px "+"#666"});</code></p><p>Now i&#8217;m applying a css3 styling using .css function, and here&#8217;s how it works:<br /> .css({&#8220;attributes&#8221;:&#8221;value&#8221;, &#8220;attributes2&#8243;:&#8221;value&#8221;, &#8230;}); so it&#8217;s just normal css but inside jQuery. But what i&#8217;m actually doing is i&#8217;m applying CSS3 drop shadow to the image using the default pos and blu values and they&#8217;re 50, so to do that i&#8217;m using the variables inside the function and i can do that just like that:<br /> The normal css will be &#8216;-webkit-box-shadow&#8217;:&#8217;50px&#8217;, but we want to use the variables&#8217; values so we will do it by adding plus signs between the words to separate them, i mean to make this work you have to write it like that:</p><p><code>css({'-webkit-box-shadow': variable+"normal text"+variable+"normal text"+variable+"normal text"})</code></p><p>So we put the normal text inside quote and separate between the different words and variables by plus sign.</p><p>The following code will be executed once you move the position slider:</p><p><code>$("#slide").change(function(){<br /> var num = $("#slide").val();<br /> var blu = $("#blure").val();<br /> $("div#nums").html(num);<br /> $("#image").css({'-webkit-box-shadow': num+"px "+num+"px "+blu+"px "+"#666"});<br /> });</code></p><p>Now by using .change() we saying if the value of this element changed do the following, so if the value of slide changed the code inside .change() will be executed.<br /> inside the .change() we redefining the variables again, then, changeing the nums div content to make it change when you move the slider.<br /> After that we apply css3 drop shadow to the image with the new positioning,</p><p><code>num+"px "+num+"px "+blu+"px "+"#666"</code></p><p>the first num+&#8221;px&#8221; and the second one just repositioning the shadow and the blu+&#8221;px &#8221; is still the same and it points to the blur value and finally the #666 is the shadow color.</p><p>The following code will be executed once you move the blur slider:</p><p><code>$("#blure").change(function(){<br /> var num = $("#slide").val();<br /> var blu = $("#blure").val();<br /> $("div#blures").html(blu);<br /> $("#image").css({'-webkit-box-shadow': num+"px "+num+"px "+blu+"px "+"#666"});<br /> });</code></p><p>As you can see i&#8217;m doing the same thing but this time with the blure slider and the blures div.</p><p>The following code will be executed once you hit the save button:</p><p><code>$('#save').click(function(){<br /> var num = $("#slide").val();<br /> var blu = $("#blure").val();<br /> $.ajax({<br /> url: "action.php",<br /> type: "POST",<br /> data: {pos: $("#slide").val(), blu: blu = $("#blure").val()},<br /> success: function(data){<br /> $("#success").html(data);<br /> $("#success").slideDown(400).delay(2000).slideUp(400);<br /> }<br /> });<br /> });</code></p><p>First, the .click() function is very simple it says, if you click on the element the following code will be executed.<br /> Inside the .click() we redefining the variables again, then, starting ajax request using $.ajax({}) so let me explain this:<br /> using $.ajax() you will be able to send HTTP request without reloading the page, you can send both POST or GET requests to any type is files PHP, ASP, etc&#8230;</p><p>And it work just like this:</p><p>url: &#8220;your action file&#8221;,</p><p>type: &#8220;post or get&#8221;,</p><p><code>data: {name: variable or "text value", name2: variable or "text value", name3: variable or "text value"},</code></p><p>success: could be function or alert or whatever you want, this will be shown in case the request is succeeded.</p><p><code>function(data){<br /> $("#success").html(data);<br /> $("#success").slideDown(400).delay(2000).slideUp(400);}</code></p><p>This function shows the success message by slideDown then delay 2 seconds after that slideUp.</p><p><code>$("#load").ajaxStart(function(){<br /> $(this).show();<br /> });<br /> $("#load").ajaxSuccess(function(){<br /> $(this).hide();<br /> });</code></p><p>Now we will show the load div once we send the request then hide it again once the request is done, using the $.ajaxStart() we will say when the request is sent show $(this) while $(this) stand for $(&#8220;load&#8221;). and using the $.ajaxSuccess() we will say when the request is send success message hide $(this) while $(this) stand for $(&#8220;load&#8221;).<br /> And that&#8217;s it this is everything JavaScript</p><h2>The PHP Work</h2><p>The full code:<br /> <code><br /> &lt;?<br /> //----------------------------------------<br /> //Code by Ahmed Hussein For CssReflex.com |<br /> //Follow on Tiwtter @Valodes              |<br /> //Check Blog @ http://www.zingyso.com/b   |<br /> //----------------------------------------<br /> //Database connect<br /> $connect = mysql_connect("localhost", "root", "") or die(mysql_error()); //Connection user and pass<br /> $select  = mysql_select_db("shadow", $connect); //Selecting the Database<br /> //Set Variables<br /> $pos = $_POST['pos']; //Position Value<br /> $blu = $_POST['blu']; //Blur Value<br /> //Insert data into database<br /> $Query = "INSERT INTO shad_set (`position`,`blur`) VALUES('".$pos."', '".$blu."')"; //The SQL Query<br /> $Insert= mysql_query($Query) or die(mysql_error()); //Insert to database<br /> echo "The new settings are saved!";<br /> ?&gt;</code></p><h3>Explanation</h3><p>First anything starts with &#8220;//&#8221;  is a comment , and anything starts with &#8220;$&#8221;  is a variable.<br /> <code>//Database connect<br /> $connect = mysql_connect("localhost", "root", "") or die(mysql_error());<br /> //Connection user and pass<br /> $select  = mysql_select_db("shadow", $connect);<br /> //Selecting the Database</code></p><p>mysql_connect is the database connection function and it&#8217;s separated to 3 parts and sometimes 4, (&#8220;Your Host &#8212; Usually localhost&#8221;, &#8220;Database UserName&#8221;, &#8220;Database Password&#8221;, &#8220;Database Port&#8221;)</p><p>mysql_select_db is the the database selector function and it&#8217;s separated to 2 parts, (&#8220;Database Name&#8221;, &#8220;Database Connection Link And this is the connecting variable&#8221;)</p><p>Now before i continue explaining the rest of the code let me show you how to make MySQL Database.</p><h2>The MySQL Database</h2><p>Go to your phpmyadmin and do the follow the instructions below:</p><p><img class="alignnone" src="http://www.cssreflex.com/wp-content/uploads/2010/02/shadow.png" alt="shadow How To Make a Drop Shadow Changer With jQuery and CSS3" width="649" height="303" title="How To Make a Drop Shadow Changer With jQuery and CSS3" /><br /> <img class="alignnone" src="http://www.cssreflex.com/wp-content/uploads/2010/02/done.png" alt="done How To Make a Drop Shadow Changer With jQuery and CSS3" width="649" height="303" title="How To Make a Drop Shadow Changer With jQuery and CSS3" /><br /> <img class="alignnone" src="http://www.cssreflex.com/wp-content/uploads/2010/02/table.png" alt="table How To Make a Drop Shadow Changer With jQuery and CSS3" width="649" height="303" title="How To Make a Drop Shadow Changer With jQuery and CSS3" /><br /> <img class="alignnone" src="http://www.cssreflex.com/wp-content/uploads/2010/02/tdone.png" alt="tdone How To Make a Drop Shadow Changer With jQuery and CSS3" width="649" height="303" title="How To Make a Drop Shadow Changer With jQuery and CSS3" /><br /> <img class="alignnone" src="http://www.cssreflex.com/wp-content/uploads/2010/02/fill.png" alt="fill How To Make a Drop Shadow Changer With jQuery and CSS3" width="649" height="303" title="How To Make a Drop Shadow Changer With jQuery and CSS3" /></p><p>Click save and you done, but let me explain, something the AUTO_INCREMENT for the id is to let it increase by itself without having to insert a value for it everytime.</p><p>Let&#8217;s continue:<br /> <code>$pos = $_POST['pos']; //Position Value<br /> $blu = $_POST['blu']; //Blur Value inside</code><br /> Here you can see two variables first one $pos = to the post pos from the ajax request and the other one is $blu = to the post blu from the ajax request.<br /> <code>$Query = "INSERT INTO shad_set (`position`,`blur`) VALUES('".$pos."', '".$blu."')";<br /> //The SQL Query<br /> $Insert= mysql_query($Query) or die(mysql_error());<br /> //Insert to database<br /> echo "The new settings are saved!";</code><br /> Here you can see two variables, too. the first one $Query = to the SQL query and inside it we saying &#8221; insert the following data inside shade_set table into fields `position` and `blur` and the actual values are the variables $pos for position and $blu for blur&#8221;</p><p>Then using mysql_query() function we execute the $Query&#8230;  Next after all of this print or echo message and this is the success message &#8220;The new settings are saved!&#8221;&#8230;</p><p>but to fetch the saved settings from the database you can do it this way:<br /> <code>&lt;?<br /> //----------------------------------------<br /> //Code by Ahmed Hussein For CssReflex.com |<br /> //Follow on Tiwtter @Valodes              |<br /> //Check Blog @ http://www.zingyso.com/b   |<br /> //----------------------------------------<br /> //Database connect<br /> $connect = mysql_connect("localhost", "root", "") or die(mysql_error()); //Connection user and pass<br /> $select  = mysql_select_db("shadow", $connect); //Selecting the Database<br /> //Insert data into database<br /> $Query = "SELECT * FROM shad_set WHERE id = '1'"; //The SQL Query<br /> $Insert= mysql_query($Query) or die(mysql_error()); //Insert to database<br /> $res = mysql_fetch_array($insert);<br /> $Pos = $res['pos'];<br /> $Blu = $res['blu'];<br /> mysql_close($connect);<br /> ?&gt;</code><br /> It&#8217;s the same thing about database connect, but the query is changed now and we are saying select all data from shad_set where the id field = 1 or whatever id you want to fetch.<br /> Then $res = mysql_fetch_array($insert) which transform data from database to array.<br /> $res['pos'] = the pos from the database and same for $res['blu'];</p><p>Now we&#8217;ve done everything&#8230; So now you have the drop down shadow changer with php/mysql saving option . Hope you enjoyed the tutorial. If you you have any questions, feel free to ask by commenting below.</p> ]]></content:encoded> <wfw:commentRss>http://www.cssreflex.com/2010/02/how-to-make-a-drop-shadow-changer-with-jquery-and-css3-2.html/feed</wfw:commentRss> <slash:comments>15</slash:comments> </item> <item><title>SexyBookmarks v2 For Blogger</title><link>http://www.cssreflex.com/2009/08/sexybookmarks-v2-for-blogger.html</link> <comments>http://www.cssreflex.com/2009/08/sexybookmarks-v2-for-blogger.html#comments</comments> <pubDate>Fri, 21 Aug 2009 18:57:59 +0000</pubDate> <dc:creator>Naeem Noor</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Blogger]]></category> <category><![CDATA[sexybookmark]]></category> <category><![CDATA[Tutorial]]></category><guid isPermaLink="false">http://www.cssreflex.com/?p=615</guid> <description><![CDATA[I being a blogger user for quite a long time, still love to give back to the community one way or other. This time again, I have tried to give back to the community by making the new version of Sexy Bookmarks compatible with blogger. The Sexy Bookmarks V1 was a huge hit and many [...]]]></description> <content:encoded><![CDATA[<div id="attachment_616" class="wp-caption aligncenter" style="width: 582px"><a href="http://www.cssreflex.com/wp-content/uploads/2009/08/sexy-bookmarks-for-blogger.PNG"><img class="size-full wp-image-616" title="sexy-bookmarks-for-blogger" src="http://www.cssreflex.com/wp-content/uploads/2009/08/sexy-bookmarks-for-blogger.PNG" alt="Sexy bookmarks for Blogger v2" width="572" height="109" /></a><p class="wp-caption-text">Sexybookmarks for Blogger v2</p></div><p>I being a blogger user for quite a long time, still love to give back to the community one way or other. This time again, I have tried to give back to the community by making the new version of Sexy Bookmarks compatible with blogger. The <a href="http://www.cssreflex.com/2009/03/add-sexy-bookmarks-to-blogger.html" target="_blank">Sexy Bookmarks V1</a> was a huge hit and many folks are still using it. I feel really happy and thankful to all who supported me last time. Looking forward for same support this time also.  Hope you like this new version.</p><p><strong>You may be interested in these older posts</strong><a title="13 Magnificent Free WordPress Portfolio Themes" href="http://www.cssreflex.com/2009/07/13-magnificent-free-wordpress-portfolio-themes.html"><br /> 13 Magnificent Free WordPress Portfolio Themes</a><br /> <a title="15 Free Awesome Social Bookmark Icons Sets" href="http://www.cssreflex.com/2009/06/15-free-awesome-social-bookmark-icons-sets.html">15 Free Awesome Social Bookmark Icons Sets<br /> </a><a title="5 Essential Google Cheat Sheets Which Surely Will Come in Handy" href="http://www.cssreflex.com/2009/07/5-essential-google-cheat-sheets-which-surely-will-come-in-handy.html" target="_self">5 Essential Google Cheat Sheets Which Surely Will Come in Handy</a></p><p><strong>Update</strong>: 27/Jan/2010</p><h3>Preview</h3><p><span style="font-weight: normal; font-size: 13px;">See the Demo <a href="http://naeem2-test-blog.blogspot.com/2009/08/sexy-bookmarks-v2-preview.html">Here</a></span></p><h3>Now, Lets begin.</h3><p>NOTE: <em>!Before changing your template, don’t forget to backup your template and your widgets!</em></p><p>1. First, of course go to your template editor and tick the &#8220;Expand Widget Template&#8221;.<br /> 2. Put the following code before <strong>&lt;/head&gt;</strong></p><p><code class="javascript"><br /> &lt;script src='http://code.jquery.com/jquery-latest.js' type='text/javascript'/&gt;<br /> &lt;script type='text/javascript'&gt;<br /> jQuery(document).ready(function() {<br /> // xhtml 1.0 strict way of using target _blank<br /> jQuery('.sexy-bookmarks a.external').attr("target", "_blank");<br /> // this block sets the auto vertical expand when there are more than<br /> // one row of bookmarks.<br /> var sexyBaseHeight=jQuery('.sexy-bookmarks').height();<br /> var sexyFullHeight=jQuery('.sexy-bookmarks ul.socials').height();<br /> if (sexyFullHeight&gt;sexyBaseHeight) {<br /> jQuery('.sexy-bookmarks-expand').hover(<br /> function() {<br /> jQuery(this).animate({<br /> height: sexyFullHeight+'px'<br /> }, {duration: 400, queue: false});<br /> },<br /> function() {<br /> jQuery(this).animate({<br /> height: sexyBaseHeight+'px'<br /> }, {duration: 400, queue: false});<br /> }<br /> );<br /> }<br /> // autocentering<br /> if (jQuery('.sexy-bookmarks-center')) {<br /> var sexyFullWidth=jQuery('.sexy-bookmarks').width();<br /> var sexyBookmarkWidth=jQuery('.sexy-bookmarks:first ul.socials li').width();<br /> var sexyBookmarkCount=jQuery('.sexy-bookmarks:first ul.socials li').length;<br /> var numPerRow=Math.floor(sexyFullWidth/sexyBookmarkWidth);<br /> var sexyRowWidth=Math.min(numPerRow, sexyBookmarkCount)*sexyBookmarkWidth;<br /> var sexyLeftMargin=(sexyFullWidth-sexyRowWidth)/2;<br /> jQuery('.sexy-bookmarks-center').css('margin-left', sexyLeftMargin+'px');<br /> }<br /> });<br /> &lt;/script&gt; </code></p><p>And this one too,</p><p><code class="css"><br /> &lt;style type="text/css"&gt;<br /> div.sexy-bookmarks{margin:20px 0 0 0; border: 0;outline: none;clear:both !important}<br /> div.sexy-bookmarks-expand{height:29px; overflow:hidden}<br /> .sexy-bookmarks-bg-sexy, .sexy-bookmarks-bg-love{background-image:url('http://img31.imageshack.us/img31/176/sexytrans.png') !important; background-repeat:no-repeat}<br /> div.sexy-bookmarks-bg-love{padding:26px 0 0 10px; background-position:left -1148px !important}<br /> div.sexy-bookmarks ul.socials{width:100% !important; margin:0 !important; padding:0 !important; float:left}<br /> div.sexy-bookmarks ul.socials li{display:inline !important; float:left !important; list-style-type:none !important; margin:0 !important; height:29px !important; width:60px !important; cursor:pointer !important; padding:0 !important}<br /> div.sexy-bookmarks ul.socials li:before, div.sexy-bookmarks ul.socials li:after, div.sexy-bookmarks ul.socials li a:before, div.sexy-bookmarks ul.socials li a:after{content:none !important}<br /> div.sexy-bookmarks ul.socials a{display:block !important; width:60px !important; height:29px !important; text-indent:-9999px !important; background-color:transparent !important}<br /> div.sexy-bookmarks ul.socials a:hover{background-color:transparent !important}<br /> .sexy-digg, .sexy-digg:hover, .sexy-reddit, .sexy-reddit:hover, .sexy-stumbleupon, .sexy-stumbleupon:hover, .sexy-delicious, .sexy-delicious:hover, .sexy-yahoobuzz, .sexy-yahoobuzz:hover, .sexy-blinklist, .sexy-blinklist:hover, .sexy-technorati, .sexy-technorati:hover, .sexy-facebook, .sexy-facebook:hover, .sexy-twitter, .sexy-twitter:hover, .sexy-myspace, .sexy-myspace:hover, .sexy-mixx, .sexy-mixx:hover, .sexy-scriptstyle, .sexy-scriptstyle:hover, .sexy-designfloat, .sexy-designfloat:hover, .sexy-comfeed, .sexy-comfeed:hover, .sexy-newsvine, .sexy-newsvine:hover, .sexy-linkedin, .sexy-linkedin:hover, .sexy-google, .sexy-google:hover, .sexy-friendfeed, .sexy-friendfeed:hover{background:url('http://img717.imageshack.us/img717/3006/sexyspritenew.png') no-repeat !important;border: 0;outline: none;}<br /> .sexy-digg{background-position:-980px bottom !important}<br /> .sexy-digg:hover{background-position:-980px top !important}<br /> .sexy-reddit{background-position:-700px bottom !important}<br /> .sexy-reddit:hover{background-position:-700px top !important}<br /> .sexy-stumbleupon{background-position:-630px bottom !important}<br /> .sexy-stumbleupon:hover{background-position:-630px top !important}<br /> .sexy-delicious{background-position:-1190px bottom !important}<br /> .sexy-delicious:hover{background-position:-1190px top !important}<br /> .sexy-yahoobuzz{background-position:-1120px bottom !important}<br /> .sexy-yahoobuzz:hover{background-position:-1120px top !important}<br /> .sexy-blinklist{background-position:-1260px bottom !important}<br /> .sexy-blinklist:hover{background-position:-1260px top !important}<br /> .sexy-technorati{background-position:-560px bottom !important}<br /> .sexy-technorati:hover{background-position:-560px top !important}<br /> .sexy-myspace{background-position:-770px bottom !important}<br /> .sexy-myspace:hover{background-position:-770px top !important}<br /> .sexy-twitter{background-position:-490px bottom !important}<br /> .sexy-twitter:hover{background-position:-490px top !important}<br /> .sexy-facebook{background-position:-1330px bottom !important}<br /> .sexy-facebook:hover{background-position:-1330px top !important}<br /> .sexy-mixx{background-position:-840px bottom !important}<br /> .sexy-mixx:hover{background-position:-840px top !important}<br /> .sexy-scriptstyle{background-position:-280px bottom !important}<br /> .sexy-scriptstyle:hover{background-position:-280px top !important}<br /> .sexy-designfloat{background-position:-1050px bottom !important}<br /> .sexy-designfloat:hover{background-position:-1050px top !important}<br /> .sexy-newsvine{background-position:left bottom !important}<br /> .sexy-newsvine:hover{background-position:left top !important}<br /> .sexy-google{background-position:-210px bottom !important}<br /> .sexy-google:hover{background-position:-210px top !important}<br /> .sexy-comfeed{background-position:-420px bottom !important}<br /> .sexy-comfeed:hover{background-position:-420px top !important}<br /> .sexy-linkedin{background-position:-70px bottom !important}<br /> .sexy-linkedin:hover{background-position:-70px top !important}<br /> .sexy-friendfeed{background-position:-1750px bottom !important}<br /> .sexy-friendfeed:hover{background-position:-1750px top !important}<br /> .sexy-link{ margin-left:25px; float:left}<br /> .sexy-link A{padding:10px 0; width:470px; text-align:right; border:0; outline:none}&lt;/style&gt;</code></p><p>3. Now Put the below code after <strong>&lt;data:post.body/&gt;</strong></p><p><code class="html">&lt;div class='sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-love' style='margin:20px 0 0 0 !important; padding:25px 0 0 10px !important; height:29px;/*the height of the icons (29px)*/ display:block !important; clear:both !important;'&gt;<br /> &lt;ul class='socials'&gt;<br /> &lt;li class='sexy-delicious'&gt;&lt;a class='external' expr:href='&amp;quot;http://del.icio.us/post?url=&amp;quot;+ data:post.url + &amp;quot;&amp;amp;title=&amp;quot; + data:post.title' rel='nofollow' title='Share this on del.icio.us'&gt;Share this on del.icio.us&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class='sexy-digg'&gt;&lt;a class='external' expr:href='&amp;quot;http://digg.com/submit?phase=2&amp;amp;url=&amp;quot;+ data:post.url + &amp;quot;&amp;amp;title=&amp;quot; + data:post.title' rel='nofollow' title='Digg this!'&gt;Digg this!&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class='sexy-stumbleupon'&gt;&lt;a class='external' expr:href='&amp;quot;http://www.stumbleupon.com/submit?url=&amp;quot;+ data:post.url + &amp;quot;&amp;amp;title=&amp;quot; + data:post.title' rel='nofollow' title='Stumble upon something good? Share it on StumbleUpon'&gt;Stumble upon something good? Share it on StumbleUpon&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class='sexy-reddit'&gt;&lt;a class='external' expr:href='&amp;quot;http://reddit.com/submit?url=&amp;quot;+ data:post.url + &amp;quot;&amp;amp;title=&amp;quot; + data:post.title' rel='nofollow' title='Share this on Reddit'&gt;Share this on Reddit&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class='sexy-google'&gt;&lt;a class='external' expr:href='&amp;quot;http://www.google.com/bookmarks/mark?op=add&amp;amp;bkmk=&amp;quot;+ data:post.url + &amp;quot;&amp;amp;title=&amp;quot; + data:post.title' rel='nofollow' title='Add this to Google Bookmarks'&gt;Add this to Google Bookmarks&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class='sexy-twitter'&gt;&lt;a class='external' expr:href='&amp;quot;http://twitter.com/home?status=Reading: &amp;quot; + data:blog.title + &amp;quot; - &amp;quot; + data:post.url + &amp;quot; (@NAME)&amp;quot;' rel='nofollow' title='Tweet This!'&gt;Tweet This!&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class='sexy-facebook'&gt;&lt;a class='external' expr:href='&amp;quot;http://www.facebook.com/share.php?u=&amp;quot;+ data:post.url + &amp;quot;&amp;amp;title=&amp;quot; + data:post.title' rel='nofollow' title='Share this on Facebook'&gt;Share this on Facebook&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class='sexy-mixx'&gt;&lt;a class='external' expr:href='&amp;quot;http://www.mixx.com/submit?page_url=&amp;quot; + data:post.url' rel='nofollow' title='Share this on Mixx'&gt;Share this on Mixx&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class='sexy-comfeed'&gt;&lt;a class='external' expr:href='data:blog.homepageUrl + &amp;quot;feeds/posts/default&amp;quot;' rel='nofollow' title='Subscribe'&gt;Subscribe&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class='sexy-yahoobuzz'&gt;&lt;a class='external' expr:href='&amp;quot;http://buzz.yahoo.com/submit/?submitUrl=&amp;quot; + data:post.url' rel='nofollow' title='Buzz up!'&gt;Buzz up!&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class='sexy-linkedin'&gt;&lt;a class='external' expr:href='&amp;quot;http://www.linkedin.com/shareArticle?mini=true&amp;amp;url=&amp;quot;+ data:post.url + &amp;quot;&amp;amp;title=&amp;quot; + data:post.title' rel='nofollow' title='Share this on Linkedin'&gt;Share this on Linkedin&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class='sexy-designfloat'&gt;&lt;a class='external' expr:href='&amp;quot;http://www.designfloat.com/submit.php?url=&amp;quot;+ data:post.url + &amp;quot;&amp;amp;title=&amp;quot; + data:post.title' rel='nofollow' title='Submit this to DesignFloat'&gt;Submit this to DesignFloat&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class='sexy-technorati'&gt;&lt;a class='external' expr:href='&amp;quot;http://technorati.com/faves?add=&amp;quot;+ data:post.url + &amp;quot;&amp;amp;title=&amp;quot; + data:post.title' rel='nofollow' title='Share this on Technorati'&gt;Share this on Technorati&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class='sexy-scriptstyle'&gt;&lt;a class='external' expr:href='&amp;quot;http://scriptandstyle.com/submit?url=&amp;quot;+ data:post.url + &amp;quot;&amp;amp;title=&amp;quot; + data:post.title' rel='nofollow' title='Submit this to Script &amp;amp; Style'&gt;Submit this to Script &amp;amp; Style&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class='sexy-myspace'&gt;&lt;a class='external' expr:href='&amp;quot;http://www.myspace.com/Modules/PostTo/Pages/?u=http&amp;quot;+ data:post.url + &amp;quot;&amp;amp;title=&amp;quot; + data:post.title' rel='nofollow' title='Post this to MySpace'&gt;Post this to MySpace&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class='sexy-blinklist'&gt;&lt;a class='external' expr:href='&amp;quot;http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;amp;Url=&amp;quot;+ data:post.url + &amp;quot;&amp;amp;title=&amp;quot; + data:post.title' rel='nofollow' title='Share this on Blinklist'&gt;Share this on Blinklist&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class='sexy-friendfeed'&gt;&lt;a class='external' expr:href='&amp;quot;http://friendfeed.com/?url=&amp;quot; + data:post.url + &amp;quot;&amp;amp;title=&amp;quot; + data:post.title' rel='nofollow' title='Share this on FriendFeed'&gt;Share this on FriendFeed&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class='sexy-newsvine'&gt;&lt;a class='external' expr:href='&amp;quot;http://www.newsvine.com/_tools/seed&amp;amp;save?u=&amp;quot;+ data:post.url + &amp;quot;&amp;amp;title=&amp;quot; + data:post.title' rel='nofollow' title='Seed this on Newsvine'&gt;Seed this on Newsvine&lt;/a&gt;&lt;/li&gt;<br /> &lt;/ul&gt;<br /> &lt;div style='clear:both;'/&gt;<br /> &lt;/div&gt;<br /> &lt;div class='sexy-link'&gt; Widget by &lt;a href='http://www.cssreflex.com/' title='Web Design Blog, Blogger Hacks and Blogger templates'&gt;Css Reflex &lt;/a&gt;|&lt;a href='http://www.tutzone.org/' title='Tutorials, Rare Downloads, Link Heaven, Tips Tricks, Hacks, Make How, Blogger Tricks And Tutorials, Internet, News, And Many More'&gt; TutZone&lt;/a&gt;&lt;/div&gt;</code></p><p>I no longer host the images on my server due to limited bandwidth  please kindly upload the images on your own server and replace the  links.<br /> <a href="http://www.cssreflex.com/wp-content/uploads/downloads/2010/02/SexyBookmarks-Images.zip">Mirror 1</a></p><p>For any query please reply here</p> ]]></content:encoded> <wfw:commentRss>http://www.cssreflex.com/2009/08/sexybookmarks-v2-for-blogger.html/feed</wfw:commentRss> <slash:comments>122</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching using disk
Object Caching 201/387 objects using disk

Served from: www.cssreflex.com @ 2010-09-10 20:55:24 -->