Bootstrap Templates Bundle

Tuesday, January 15, 2013

Floating Facebook like button


<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet"

href="http://www.dynamicdrive.com/dynamicindex17/dropincontentbox.css" />

<script type="text/javascript"

src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script

src="http://www.dynamicdrive.com/dynamicindex17/jquery.easing.1.3.js"></script>
<script src="http://www.dynamicdrive.com/dynamicindex17/dropincontentbox.js">

/***********************************************
* Drop In Content Box (c) Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

</script>

<script>

var dropinbox1=new dropincontentbox({
source:['#dropbox',

'http://www.dynamicdrive.com/dynamicindex17/dropincontent.htm'], //#id of DIV to

show if defined inline, or [#id, path_to_box_content_file] if defined in external

file
cssclass:'dropinbox standardshadow', //arbitrary class(es) to add to the

drop in box to style it
showduration:10 //disappear after x seconds?
})

var dropinbox2=new dropincontentbox({
source:'#reminder', //#id of DIV to show if defined inline
cssclass:'dropinbox dropinboxaltstyle drop-shadow lifted',
fx:'easeInExpo', //alternate drop animation keyword
pos:[-20, -20], //custom position of drop in box
deferred:1 //show box 1 sec after page has loaded
})

</script>
</head>
<body>
<div id="reminder">

<iframe style="overflow: visible;"

src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com

%2Fpages%2FCdnews24com

%2F196618787024224&amp;width=252&amp;height=102&amp;colorscheme=light&amp;show_fa

ces=true&amp;border_color&amp;stream=false&amp;header=false" frameborder="0"

scrolling="no" width="252" height="102"></iframe></div>

<a style="position: fixed; bottom:5px;right:5px;"

href="javascript:dropinbox2.show()">Facebook</a>

</body>
</html>

Source: http://www.dynamicdrive.com/dynamicindex17/dropinbox.htm

Floating Add Create

Step 1: Add the following code into the <HEAD> section of your page:

<style type="text/css">

#topbar{
position:absolute;
border: 1px solid black;
padding: 2px;
background-color: lightyellow;
width: 620px;
visibility: hidden;
z-index: 100;
}

</style>

<script type="text/javascript">

/***********************************************
* Floating Top Bar script- © Dynamic Drive (www.dynamicdrive.com)
* Sliding routine by Roy Whittle (http://www.javascript-fx.com/)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 30 //set x offset of bar in pixels
var startY = 5 //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "frombottom"

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function closebar(){
if (persistclose)
document.cookie="remainclosed=1"
document.getElementById("topbar").style.visibility="hidden"
}

function staticbar(){
barheight=document.getElementById("topbar").offsetHeight
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
var d = document;
function ml(id){
var el=d.getElementById(id);
if (!persistclose || persistclose && get_cookie("remainclosed")=="")
el.style.visibility="visible"
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function(){
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : iecompattest().scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("topbar");
stayTopLeft();
}

if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
</script>

Step 2: Insert the below HTML code in the BODY section of your page, outside any container tags (ie: a DIV or TABLE):

<div id="topbar">
<a href="" onClick="closebar(); return false"><img src="http://www.dynamicdrive.com/dynamicindex11/close.gif" border="0" /></a>
Your content here.
</div>

Source: http://www.dynamicdrive.com/dynamicindex17/floatbar.htm
http://www.dynamicdrive.com/dynamicindex17/dropinbox.htm
http://www.dynamicdrive.com/dynamicindex17/stayontop.htm

MY Bookmarks

Bookmarks

Bookmarks


How to Create Multiple Dynamic Sidebars for Wordpress Widgets
Free online web polls generator
Create a Shoutbox
Best widgets for your site, blog, social network, and more! · Widgetbox
Animated Logos on FlamingText.com
Css Image Gallery Thumbnails | web3mantra
stu nicholls dot com | gallery - simply more
Slideshow & Scroller - Free Dhtml scripts,Jquery plugins,Javascript,CSS,CSS3,Html5 Library
http://wordpress.org/extend/plugins/baw-post-views-count/ is not available
50 Awesome CSS3 Animations
Get free weather widget
HTML Iframes
Free HTML Tutorial - Learning to Code HTML
HTML Tutorial
HTML Tutorial - Bgcolor
Tabbed Content
Drop Down Menu
Posts Map | It works on WordPress
categories - Display thumbnails for certain category posts - WordPress Answers
How to Display “Time Ago” for Posts and Comments
Blogger: All Types of Tutorial Available here - Create post
Class Reference/WP Query « WordPress Codex
Get free weather widget
RSS Feed Widget
newsprotidin.net/?feed=rss2
News24, South Africa's premier news source, provides breaking news on national, world, Africa, sport, entertainment, technology & more.
Free Html5 Templates x Free Css3 Menus: Free Html5 Templates
Ecommerce Website Templates
Demo Free Html5 and Css3 Templates | Html5xcss3.com
Domain Reseller | Low Cost Reseller Hosting | Resell.biz
Free Flash Templates
Java - Date & Time
Flash-Gallery.com - Get your photo gallery (flash component, swf gallery, Joomla and Wordpress plugins, jquery gallery)
Floating Email-This-Link Script With URL Auto-Capture - DownloadJavascripts.com
jQuery ‘Tab Slide Out’ Plugin
Dynamic Drive DHTML Scripts- Pausing up-down Scroller
Dynamic Drive- Sticky Note script
Dynamic Drive DHTML Scripts- Popup Box II
Dynamic Drive- Dynamic Content
Dynamic Drive-Amazon style Drop-in content box
Free Hosted Scripts - Online User Counter
Free Hosted Scripts
Web form builder & free HTML forms | Adobe FormsCentral
Adobe FormsCentral
A Simple PHP Contact Form | WEB200 | Premium Design Works
JavaScript Kit Advanced JavaScript Tutorials
Using the window.open method
JavaScript: open a window
Mashable floating effect example with jQuery
Free Social Traffic pop for Blogger
Dynamic Drive DHTML Scripts- Fluid Text Resizer
ওয়ার্ড প্রেস সাইটে ফেসবুক এর স্লাইডিং পেজ বক্স তৈরী করুন | Amarblog.com: Bangla Blog ( আমারব্লগ ) with no Moderation.
newdesign/facebook.php at master · Prothomalo/newdesign · GitHub
How to set marquee word stop showing for a moment?
Web Solution Bangladesh
How To Move WordPress Site To New Server
How To Move Wordpress To A New Server Or Host

Download/Link Hit Counter

If you want to create a download counter or want to display number of clicks on a link then follow the steps here written bellow:

Step1:  Dowload this file by clicking here
Step2: Follow the steps written on readme file after downloading

You can check a sample from here in bestcareerbd
If any problem arise you can contact with +8801723833508 or +8801916137024

Hit Counter

If any one wants to add a hit counter for specific link or key or button then add this below code
N.B: I recommend you to see my post  Download/Link Hit Counter for better result
Sample1 : 

<HTML>
 <HEAD>
  <TITLE> Clicker Counter Thingamajig </TITLE>
</head>
<body>
<script type="text/javascript">
var clicks = 0;
function linkClick(){
    document.getElementById('clicked').value = ++clicks;
}
document.write('<a href="http://downloads.wordpress.org/plugin/wp-click-
track.zip" onclick="linkClick()">Click Me!</a>');
</script>
You have clicked the link <input id="clicked" size="3" onfocus="this.blur();"
value="0" > times.
 </BODY>
</HTML>


Sample2: 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
     <input type='submit' value='like' onclick='' id='aa' />
         <p style='clear: left;'> <span>0</span> like this. </p>
         <script>
         $("#aa").click(function () {
                 var n = parseInt($("span").text(), 10);
                         var a=0;
                       
                         n = n + 1;
                       
             $("span").text( a = parseInt(a) + parseInt(n));
         });
     </script>
</body>
</html>

limitation: Restore with each page load

Monday, January 14, 2013

Jquery popup window that opens on page load


Add this below code where you want

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Simple JQuery Modal Window from Queness</title>
<script type="text/javascript"

src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>

<script type="text/javascript">
$(document).ready(function() {

var id = '#dialog';

//Get the screen height and width
var maskHeight = $(document).height();
var maskWidth = $(window).width();

//Set heigth and width to mask to fill up the whole screen
$('#mask').css({'width':maskWidth,'height':maskHeight});

//transition effect
$('#mask').fadeIn(1000);
$('#mask').fadeTo("slow",0.8);

//Get the window height and width
var winH = $(window).height();
var winW = $(window).width();
             
//Set the popup window to center
$(id).css('top',  winH/2-$(id).height()/2);
$(id).css('left', winW/2-$(id).width()/2);

//transition effect
$(id).fadeIn(2000);

//if close button is clicked
$('.window .close').click(function (e) {
//Cancel the link behavior
e.preventDefault();

$('#mask').hide();
$('.window').hide();
});

//if mask is clicked
$('#mask').click(function () {
$(this).hide();
$('.window').hide();
});

});

</script>

<style type="text/css">
body {
font-family:verdana;
font-size:15px;
}

a {color:#333; text-decoration:none}
a:hover {color:#ccc; text-decoration:none}

#mask {
  position:absolute;
  left:0;
  top:0;
  z-index:9000;
  background-color:#000;
  display:none;
}
#boxes .window {
  position:absolute;
  left:0;
  top:0;
  width:440px;
  height:200px;
  display:none;
  z-index:9999;
  padding:20px;
}
#boxes #dialog {
  width:375px;
  height:203px;
  padding:10px;
  background-color:#ffffff;
}
</style>
</head><body>
<h2><a href="http://www.queness.com/">Simple jQuery Modal Window Examples from

Queness WebBlog</a></h2>
<div style="font-size: 10px; color: rgb(204, 204, 204);">Except where otherwise

noted, content on this site is licensed under a Creative Commons Attribution 3.0

License.</div>

<div id="boxes">
<div style="top: 199.5px; left: 551.5px; display: none;" id="dialog"

class="window">
Simple Modal Window |
<a href="#" class="close">Close it</a>
</div>
<!-- Mask to cover the whole screen -->
<div style="width: 1478px; height: 602px; display: none; opacity: 0.8;"

id="mask"></div>
</div>
</body>
</html>


Jquery popup window that opens on page load


Add this below code where you want

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Simple JQuery Modal Window from Queness</title>
<script type="text/javascript"

src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>

<script type="text/javascript">
$(document).ready(function() {

var id = '#dialog';

//Get the screen height and width
var maskHeight = $(document).height();
var maskWidth = $(window).width();

//Set heigth and width to mask to fill up the whole screen
$('#mask').css({'width':maskWidth,'height':maskHeight});

//transition effect
$('#mask').fadeIn(1000);
$('#mask').fadeTo("slow",0.8);

//Get the window height and width
var winH = $(window).height();
var winW = $(window).width();
             
//Set the popup window to center
$(id).css('top',  winH/2-$(id).height()/2);
$(id).css('left', winW/2-$(id).width()/2);

//transition effect
$(id).fadeIn(2000);

//if close button is clicked
$('.window .close').click(function (e) {
//Cancel the link behavior
e.preventDefault();

$('#mask').hide();
$('.window').hide();
});

//if mask is clicked
$('#mask').click(function () {
$(this).hide();
$('.window').hide();
});

});

</script>

<style type="text/css">
body {
font-family:verdana;
font-size:15px;
}

a {color:#333; text-decoration:none}
a:hover {color:#ccc; text-decoration:none}

#mask {
  position:absolute;
  left:0;
  top:0;
  z-index:9000;
  background-color:#000;
  display:none;
}
#boxes .window {
  position:absolute;
  left:0;
  top:0;
  width:440px;
  height:200px;
  display:none;
  z-index:9999;
  padding:20px;
}
#boxes #dialog {
  width:375px;
  height:203px;
  padding:10px;
  background-color:#ffffff;
}
</style>
</head><body>
<h2><a href="http://www.queness.com/">Simple jQuery Modal Window Examples from

Queness WebBlog</a></h2>
<div style="font-size: 10px; color: rgb(204, 204, 204);">Except where otherwise

noted, content on this site is licensed under a Creative Commons Attribution 3.0

License.</div>

<div id="boxes">
<div style="top: 199.5px; left: 551.5px; display: none;" id="dialog"

class="window">
Simple Modal Window |
<a href="#" class="close">Close it</a>
</div>
<!-- Mask to cover the whole screen -->
<div style="width: 1478px; height: 602px; display: none; opacity: 0.8;"

id="mask"></div>
</div>
</body>
</html>


Wokiee React eCommerce Template