HOME | SERVICES | CONTACT | PORTFOLIO | MUSIC

Wow!! Long time now type!

Sorry for the utter lack of posts! The holidays were extremely busy! I hope that Santa was good to all... No Coal in the stockings?

Well, here is my yearly reminder. If you are still doing it manually.... Don't forget to update the copyrights on your website(s).

If you are still doing it manually.. Then QUIT IT!! Save yourself some work.. I know, it's not hard.. Only once a year.. But why think about it.

Check out my entry from last year on a Javascript AND Coldfusion method of keeping those pesky copyrights in check.

HAPPY NEW YEAR!!

New Year Update Reminder

Just a quick reminder to everyone out there... It's a New Year ... (Yippeeeee!!!) If you're still doing it by hand, don't forget to update the Copyright Dates on your web sites.

If you're doing it automatically.. Good for you!! Keep up the Good work. Just check to see that it did what it was supposed to do.

If you want to do it automatically, I blogged about a couple of methods a while back:

Update-Copyright-in-Javascript-and-Coldfusion

Check it out... great time saver.. Enjoy the weekend!

Simple Pop-up Window

I tend to use this little bit of javascript quite a bit so I thought I would share. You can use this little javascript to add a "Pop-up" window effect to links in your website.

For example, if you have a page of product images and Item numbers you can make them link to a "Pop-up" window with the item details.

» read the rest of this entry «

Cool Javascript Effect

I saw this the other day and thought I'd share... I'm trying to figure out the practicle use for this script.. other than if you're really bored.

Just go to any website that has pictures and paste the code below into the address bar of your browser.


javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);

Javascript Countdown

Not long ago I Blogged about a Coldfusion method for counting down to a specific date. Well, if you don't have access to a coldfusion server for your site, it's pretty easy to add the same function with Javascript.

I found this script at: JavaScriptKit It's really simple to modify.


<script>

/*
Count down until any date script-
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free scripts here!
*/



//change the text below to reflect your own,

var before="My Birthday!"
var current="Today is My Birthday, Dont forget to visit my wishlist"
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

function countdown(yr,m,d){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy
var futurestring=montharray[m-1]+" "+d+", "+yr
var difference=(Math.round((Date.parse(futurestring)-Date.parse(todaystring))/(24*60*60*1000))*1)
if (difference==0)
document.write(current)
else if (difference>
0)
document.write("Only "+difference+" days until "+before)
}
//enter the count down date using the format year/month/day
countdown(2007,2,25)
</script>

Just modify the "var before " and "var current" text to your own text. Then modify the date in the "countdown(yyyy,mm,dd)" statement. Then Place this bit of code in the body where you would like the count down to appear.

If you use this code on your page, please keep the credits to the original author in place.

Enjoy!

Update Copyright in Javascript and Coldfusion

Although you only have to do it once a year, keeping the copyright updated on your web site(s) can sometimes be troublesome... The best thing to do would be to automate the process.. Here are two ways you can accomplish this. 1. Javascript:


<script language="JavaScript">
var d=new Date();
yr=d.getFullYear();
if (yr!=2003)
     document.write("- "+yr);
</script>
2. Coldfusion: First Set the date the site was created:

<CFSET createdYear = DateFormat('1/1/2001', 'yyyy')>
The Get the current Year:

<CFSET currentYear = DateFormat(now(), 'yyyy')>
Then determine if the createdYear and the currentYear are different and output the copyright:

<CFOUTPUT>
© #createdYear#
<!--- if the createdYear and currentYear are different then show both years --->
<CFIF createdYear neq currentYear>
- #currentYear#
</CFIF>
</CFOUTPUT>
Your site Name.
There ya go!! Enjoy

Neat little script

Here is a neat little javascript I've been using to add a dynamic date to your website....

Place this first bit before the opening body tag:



<script language="JavaScript">
<!--
dayName = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")
monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
now = new Date
// -->

</script>

Then... Place this next bit.. in the DIV or Table or... where ever that you want the date to display.


<SCRIPT LANGUAGE="JavaScript">
document.write(dayName[now.getDay()] + ", " + monName[now.getMonth()] + " " + now.getDate() + ", " + now.getFullYear() + "." );
</script>
That's it! Short and sweet.. Enjoy

Content Copyright © 2005 Owen Consulting - All Rights Reserved | This Blog Powered by BlogCFC version 5.9.1.001.