Showing posts with label Javascript. Show all posts
Showing posts with label Javascript. Show all posts
Saturday, January 14, 2012
Character Count!
Thursday, January 12, 2012
Javascript For Redirection
In Previous Post We' Have Posted a Technique For Redirecting using "Meta Tags" .In This Post We Would Like To Present An Another Way of Redirecting Using "java Script".
Redirection Using JavaScripts is Pretty Simple And Effective. This Method of Redirection Is Also more Search Engine Friendly.
Follow these Steps To Redirect to a New Blog Address.
1. Login to Your dashboard--> layout- -> Edit HTML.
2.Scroll Down or find <head> Tag.
3.Paste The Following Code With Your New Blog Address.
For Ex: I Want To Redirect My Traffic From My Older Blog "www.atozlyrics.blogspot.com" To New Blog Address "www.fuckyeahlyrics.blogspot.com"
Code For This As Follows:
<script type='text/javascript'>
strLoc=window.location.href;
var newLoc = strLoc.replace("atozlyrics","fuckyeahlyrics");
window.location.replace(newLoc);
</script>
Redirection Using JavaScripts is Pretty Simple And Effective. This Method of Redirection Is Also more Search Engine Friendly.
Follow these Steps To Redirect to a New Blog Address.
1. Login to Your dashboard--> layout- -> Edit HTML.
2.Scroll Down or find <head> Tag.
3.Paste The Following Code With Your New Blog Address.
<script type='text/javascript'>
strLoc=window.location.href;
var newLoc = strLoc.replace("Old Blogger Domain","New Blog");
window.location.replace(newLoc);
</script>
For Ex: I Want To Redirect My Traffic From My Older Blog "www.atozlyrics.blogspot.com" To New Blog Address "www.fuckyeahlyrics.blogspot.com"
Code For This As Follows:
<script type='text/javascript'>
strLoc=window.location.href;
var newLoc = strLoc.replace("atozlyrics","fuckyeahlyrics");
window.location.replace(newLoc);
</script>
Counting Number of Words !!
Source Code For Counting Number of Words in A Text using Javascript.
<div dir="ltr" style="text-align: left;" trbidi="on">
<form method="POST" name="Pru">
<script language="JavaScript">
function countit()
{
var formcontent=document.Pru.Prucount2.value
var trimmed =formcontent.replace(/^\s+|\s+$/g, '') ;
var str = trimmed.replace(/ +(?= )/g,'');
trimmed=str.split(" ")
document.Pru.Prucount3.value=trimmed.length
}
</script><br />
<table border="0" cellpadding="0" cellspacing="0"><tbody>
<tr> <td width="100%"><textarea cols="60" name="Prucount2" rows="12" wrap="virtual"></textarea></td> </tr>
<tr>
<td width="100%"><div align="right">
<input onclick="countit()" type="button" value="Calculate Words" />
<input name="Prucount3" size="20" type="text" /><br />
<div align="center">
<br />
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<form method="POST" name="Pru">
<script language="JavaScript">
function countit()
{
var formcontent=document.Pru.Prucount2.value
var trimmed =formcontent.replace(/^\s+|\s+$/g, '') ;
var str = trimmed.replace(/ +(?= )/g,'');
trimmed=str.split(" ")
document.Pru.Prucount3.value=trimmed.length
}
</script><br />
<table border="0" cellpadding="0" cellspacing="0"><tbody>
<tr> <td width="100%"><textarea cols="60" name="Prucount2" rows="12" wrap="virtual"></textarea></td> </tr>
<tr>
<td width="100%"><div align="right">
<input onclick="countit()" type="button" value="Calculate Words" />
<input name="Prucount3" size="20" type="text" /><br />
<div align="center">
<br />
<br />
Thursday, September 23, 2010
Twitter Hacked opens popups,causes Mess
Twitter,one of the Most Famous Social Networking microblogging site apologised to its millions of users after the "mouse over bug "raged through the site ,opening pop up windows in browsers to Pornographic sites and Automatically generating tweets from accounts.
All these started with a 17 year -old Australlian school boy Pearce Delphin ,holding a twitter name of @zzap whose mischeif activity caused a mess to twitter .Delphin admitted exposing a security flaw in twitter which was then pounced upon by hackers ,affecting thousands of users and caused inconvinence to users for five hours .
He tweeted a piece of "mouseover" javascript code which brings up a pop up window when user lands their mouse over it.He thought it would be fun ,but this idea was soon smartly undertaken by Hackers who made a code to redirect users to pornographic sites and create "worm" tweets that are capable of replicating.
It affetced the users who logged on to site leaving the third party users like Tweetdeck or other feeds.Hackers made the code which fits in the limit of Tweet 140 characters. According to security software maker F-Secure Corp., the shortest virus so far was just 22 characters long.
This effected some millions of users and even white house press secreatry ,Mr.Robert gibbs ,before Twitter engineers pathced it up.A simple Mischeif caused a mess for five hours .
All these started with a 17 year -old Australlian school boy Pearce Delphin ,holding a twitter name of @zzap whose mischeif activity caused a mess to twitter .Delphin admitted exposing a security flaw in twitter which was then pounced upon by hackers ,affecting thousands of users and caused inconvinence to users for five hours .
He tweeted a piece of "mouseover" javascript code which brings up a pop up window when user lands their mouse over it.He thought it would be fun ,but this idea was soon smartly undertaken by Hackers who made a code to redirect users to pornographic sites and create "worm" tweets that are capable of replicating.
It affetced the users who logged on to site leaving the third party users like Tweetdeck or other feeds.Hackers made the code which fits in the limit of Tweet 140 characters. According to security software maker F-Secure Corp., the shortest virus so far was just 22 characters long.
This effected some millions of users and even white house press secreatry ,Mr.Robert gibbs ,before Twitter engineers pathced it up.A simple Mischeif caused a mess for five hours .
Labels:
Javascript,
Mouseover bug,
Pearce delphin,
twitter,
twitter hack,
Twitter hacked by oz boy,
worm,
zzap
Subscribe to:
Posts (Atom)
