Scripting

javascript.js

hide links

// idea from http://www.w3schools.com/js/tryit.asp?filename=try_dom_tut_nodelist_length
// to hide certain links from browser but search engine can find it.
<p id="intro">W3Schools example</p>
<div id="dennyhalim.com">
<p>
get <a href="http://it.dennyhalim.com" title="get more great free widgets">great free widgets</a>
</p>
</div>
<script type="text/javascript">
x=document.getElementById('dennyhalim.com').getElementsByTagName("p");
for (i=0;i<x.length;i++)
  { 
 x[i].setAttribute("style", "display:none");
  }
</script>

get document title

x=document.getElementsByTagName("title");
  document.write(x[0].innerHTML);

subscribe button

http://www.ifeedreaders.com/chicklet-creator/RSS-buttons.php

   <script type="text/javascript">
function showDiv(objectID) {
var theElementStyle = document.getElementById(objectID);
if(theElementStyle.style.display == "block"){
theElementStyle.style.display = "none";
}else{
theElementStyle.style.display = "block";}
}
</script>
<style type="text/css">
#TW-feed, #TW-feed ul {list-style:none; margin:0px; padding:0px}
#TW-feed li ul {display:none;position:absolute;background-color:#ffffff;padding:3px;border:1px solid #cccccc;}
#TW-feed li {font-weight:bold; color:#EC8132;}
#TW-feed ul li {padding-bottom:3px;}
</style>
<div onMouseOver="showDiv('TW-Pop');return false;" onMouseOut="showDiv('TW-Pop');return false;">
<ul id="TW-feed">
<li>Subscribe <img src="http://i150.photobucket.com/albums/s93/twistermc/feed-icon.gif" border="0">
<ul id="TW-Pop">
<li><a href="http://fusion.google.com/add?feedurl=feed"><img src="http://gmodules.com/ig/images/plus_google.gif" alt="Google Reader or Homepage" border="0"></a>
</li>
<li><a href="http://www.ifeedreaders.com/subscribe.php?thefeed=feed&"><img src="http://www.ifeedreaders.com/buttons/button2.gif" alt="Subscribe" border="0" title="More Subscription Options"/></a>
</li>
<li><a href="http://add.my.yahoo.com/rss?url=feed"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif" border="0" alt="Add to My Yahoo!"></a>
</li>
<li><a href="http://www.bloglines.com/sub/feed"><img src="http://www.bloglines.com/images/sub_modern9.gif" alt="Subscribe with Bloglines" border="0" /></a>
</li>
<li><a href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=feed"><img src="http://www.newsgator.com/images/ngsub1.gif" alt="Subscribe in NewsGator Online" border="0"></a> 
</li>
<li><a href="http://my.msn.com/addtomymsn.armx?id=rss&ut=feed&ru=url"><img src="http://sc.msn.com/44/G,UCH%7BZBSS3%7BOS%7BSE469LG.gif" border="0"></a>
</li>
<li><a href="http://feeds.my.aol.com/add.jsp?url=feed"><img src="http://myfeeds.aolcdn.com/vis/myaol_cta1.gif" alt="Add to My AOL" border="0"/></a>
</li>
<li><a href="http://www.rojo.com/add-subscription?resource=feed"> <img src="http://www.rojo.com/skins/static/images/add-to-rojo.gif" alt="Subscribe in Rojo" style="border:0"></a>
</li>
<li><a href="http://www.r-mail.org/bm.aspx?rss=feed" style="background-color: #fff; font-weight: bold; color:#000; border:1px solid #000; font-size: 11px; padding: 2px; text-decoration: none; font-family: sans-serif;"><span style="color:#F76615">R</span>|Mail</a>
</li>
<li><a href="http://technorati.com/faves?add=url"><img src="http://static.technorati.com/pix/fave/tech-fav-5.gif" alt="Add to Technorati Favorites!" border="0"/></a>
</li>
<li><a href="http://www.ifeedreaders.com/news/5/" style="font:9px Verdana, Arial, Helvetica, sans-serif; width:100px;">Feed Button Help</a></li></ul></li></ul></div>
Add a New Comment
or Sign in as Wikidot user
(will not be published)
- +
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License