Page Views

Showing posts with label HTML Coding. Show all posts
Showing posts with label HTML Coding. Show all posts

Saturday, 8 December 2012

Geo News Html code for blogger

frineds aaj main aap ko apne blog ya site ke liye Geo News code share kar raha hoon jo ko wo live streaming news hai, es se aap apne blog ko aur bhi khobsurat bana sakte hain. bas yeh code aap html java script me paste karen aur news ka maza len.

Code yeh hai..

Geo News English 
HTML Code:
<td><iframe src='http://apps.geo.tv/ticker/eng.asp' height='20' width='990' scrolling='no' frameborder='0'></iframe></td>

Geo News Urdu
HTML Code:
<td><iframe src='http://apps.geo.tv/ticker/jm.asp' height='37' width='1000' scrolling='no' frameborder='0'></iframe></td>

Urdu 2
HTML Code:
<td><iframe src='http://apps.geo.tv/ticker/jang.asp' height='37' width='778' scrolling='no' frameborder='0'></iframe></td

Friday, 7 December 2012

Stop your content copying

friends aaj main aap ko aisa code bata raha hoon jis se aap ke blog ya site se koi bhi content copy nahein kar sakta. apne blogger mein sign in ho ke es ko follow karen.

1. dashboard main jayen, phir Design / Layout > Edit HTML
 2. phir Expand Widget Templates pe click karen
3. ab neeche wala code copy karen.
4. es code ko head tag, ke center me paste karen <head> Code </head>

<script type="text/javascript">
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase ())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>

5. Save Template tab
Ab aap ke blog and site ke content mehfoz ho gaye hain koi bhi copy nahen kar sakta

Wednesday, 5 December 2012

Html color coding

friends jaisa ke aap jante hain ke hum agar hamein HTML nahein aaye gi to koi bhi website nahein bana sakte aur unko edit kar sakte hain, mera aaj ka yeh lecture hai HTML color coding yahan share kar raha hoon jo aap ko boht helpful sabit honge. hum es color coding se apni site mein text ko ya backround ko aur bhi khobsurat bana sakte hain.

ye total coding jpg format mein hain.




Sunday, 25 November 2012

Character Counter

friends aap ko pata hoga ke jahan bhi aap test dene jate ho to aap ko typing ke liye word dete hain ke ye aap ko 30 minutes mein itne characters ye words likhne hain aaj main aap ko aik code de raha hoon jis se apne type kiye gaye words ko easily count kar sakte hain hain.


aur ziyada tar hum fourm ya website pe hum jo paragraph likhte hain unke kam se kam 500 tak character hona chahye to hamen kaise pata chale ga ke hum jo words likhe hain wo kitne hain, ye aap ko code boht helful sabit hoga. Counter calculator ka ye code aap kahen bhi HTML/JAVASCRIPT mein laga sakte hain.

Code yeh hain


Word/Line Count Calculator
<script type="text/javascript">
function calcStats()
{
var myString;
var lines;
var characters;
var words;
var charsnospaces;
var myString = document.getElementById("doc").value;
var trReturn = myString[myString.length-1] == "\n";

if (myString == "")
lines = characters = words = charsnospaces = 0;
else
{
lines = myString.split("\n").length; //counts the amount of lines.
if (trReturn)
lines--;
myString = myString.replace(/\n/g, " "); //replaces the line break characters with a space
characters = trReturn ? myString.length - lines : myString.length; //gets the length of the string with no line break characters.
myString = myString.replace(/^\s*|\s*$/g,""); //trim whitespace
myString = myString.replace(/\s{2,}/g," "); //eliminates extra whitespace around words.
words = myString.split(" ").length; //gets the words
myString = myString.replace(/\s/g, ""); //eliminates the spaces
charsnospaces = myString.length;
}

document.getElementById("lines").innerHTML = lines;
document.getElementById("characters").innerHTML = characters;
document.getElementById("words").innerHTML = words;
document.getElementById("charsnospaces").innerHTML = charsnospaces;
}
function clearSpans()
{
document.getElementById("lines").innerHTML = "";
document.getElementById("characters").innerHTML = "";
document.getElementById("words").innerHTML = "";
document.getElementById("charsnospaces").innerHTML = "";
}
</script>
<form onreset="clearSpans()" style="margin:0">
  <textarea cols="30" id="doc" onchange="calcStats()" rows="5"></textarea>
  <br />
  <input onclick="calcStats()" type="button" value="Get Stats" />
  <input type="reset" value="Clear" />
</form>
<p class="result">Word count: <span id="words"></span></p>
<p class="result">Characters w/o spaces: <span id="charsnospaces"></span></p>
<p class="result">Characters: <span id="characters"></span></p>
<p class="result">Lines: <span id="lines"></span></p>

<script>gadgets.util.runOnLoadHandlers();</script><script>window.google.csi.tickDl();
</script>


Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons