HTML Back-A-Page
June 21st, 2009 Filed Under Javascript
Programming to have your HTML go back a page isn’t hard. It’s simple Javascript that you can use in a link or a form’s button…
<form method="post"> <input type="button" value="Back" OnClick="history.go(-1 );return true;"> </form> <a href="javascript:history.go(-1)">Back</a>
Hope that helps,
Thuan
378 Views |
Permalink | Trackback |
|
Print This Article | Leave a Comment
HTML Tags Converter
June 13th, 2009 Filed Under Javascript
For some reason I couldn’t find a HTML Tags Converter on the web at all, so I wrote one…
It’s really simple Javascript, but a very useful tool when you need it… if you find it useful, leave a comment. ![]()
-Thuan
432 Views |
Permalink | Trackback |
|
Print This Article | Leave a Comment
Reflection.js
April 7th, 2009 Filed Under Javascript
I have been using a fancy snippet of JavaScript ever since I ran into it a few months back. After giving it some time to prove itself, it’s time to thank Cow for making my blog, reflective.
What is it?
Reflection.js
What does it do?
Reflection.js allows you to add reflections to the images on your web pages using CSS. All you have to do is give the desired images a “reflect” CSS class. Simple as that.
I have used it numerous times, but here are a few more examples…
![]() |
![]() |
![]() |
Whatcha think? Pretty cool right? If you want it? You can download it here… http://cow.neondragon.net/stuff/reflection/
-Thuan
467 Views |
Permalink | Trackback |
|
Print This Article | Leave a Comment
Javascript: Month + Year
May 28th, 2008 Filed Under Javascript
I recently needed to use javascript to write out the current month and year. Here, HTH…
<script type=”text/javascript”>
<!–
var currentMonthYear = new Date()
var monthNumber = currentMonthYear.getMonth() + 1
var year = currentMonthYear.getFullYear()
if (monthNumber==1) monthName=(’January’);
else if (monthNumber==2) monthName=(’February’);
else if (monthNumber==3) monthName=(’March’);
else if (monthNumber==4) monthName=(’April’);
else if (monthNumber==5) monthName=(’May’);
else if (monthNumber==6) monthName=(’June’);
else if (monthNumber==7) monthName=(’July’);
else if (monthNumber==8) monthName=(’August’);
else if (monthNumber==9) monthName=(’September’);
else if (monthNumber==10) monthName=(’October’);
else if (monthNumber===11) monthName=(’November’);
else monthName=(’December’);
document.write(monthName + ” ” + year)
//–>
</script>
212 Views |
Permalink | Trackback |
|
Print This Article | Leave a Comment



