»
EnglishFrenchVietnamese

Print - Black Bold Hyperlinks - JavaScriptBank.com

Full version: jsB@nk » Link » Black Bold Hyperlinks
URL: https://www.javascriptbank.com/black-bold-hyperlinks.html

Black Bold Hyperlinks © JavaScriptBank.comWith this changing links JavaScript on page, your links make bold after clicked. A good navigating script for websites that using frame or for toggling content.

Full version: jsB@nk » Link » Black Bold Hyperlinks
URL: https://www.javascriptbank.com/black-bold-hyperlinks.html



JavaScript
<script type="text/javascript"><!--// Created by Calvin Leung - http://www.pphresh.comfunction turnBackBold (speclink) { var anchors = document.links for (i=0; i<anchors.length; i++) {    anchors[i].style.fontWeight = '300'; } speclink.style.fontWeight = '900';}//--></script>


HTML
<p><a href="#" onclick="turnBackBold (this);">this is link 1</a><br><a href="#" onclick="turnBackBold (this);">this is link 2</a><br><a href="#" onclick="turnBackBold (this);">this is link 3</a><br><a href="#" onclick="turnBackBold (this);">this is link 4</a><br><a href="#" onclick="turnBackBold (this);">this is link 5</a><br><a href="#" onclick="turnBackBold (this);">this is link 6</a></p>