I (verb) (adjective) (noun)’s

I build awesome websites. So, I’m finally getting around to building my own for a few reasons. I need a place to show off my portfolio and all the excellent bits of information, programs, etc that I run across to help other people that do what I do. The Web is what we make it – just doin’ my part.

Simple Homepage Image Rotator (Javascript, Slideshow, Showcase)

Last Updated on Friday, 30 July 2010 07:46 Written by Damian Friday, 30 July 2010 07:43

Here is what you will put inline wherever you want the rotating image:

<body onload="rotate()">
<a id="ad" href="http://www.google.com"><img src="IMAGE2.jpg" height="381" width="653" name="adshowboard" border="0"></a>
</body>
And then the script at the bottom of the page to control it:
<script language="JAVASCRIPT" type="TEXT/JAVASCRIPT"><!--
showboard = new Image
showboard.src = "IMAGE1.jpg"
showboard = new Image
showboard.src = "IMAGE2.jpg"
showboard = new Image
showboard.src = "IMAGE3.jpg"
adImages = new Array("IMAGE1.jpg","IMAGE2.jpg","IMAGE3.jpg")
adURLS = new Array("http://www.LINK1.com","http://www.LINK2.com","http://www.LINK3.com");
thisAd = 0;
imgCt = adImages.length;
function rotate() {
if (document.images) {
thisAd++;
if (thisAd == imgCt) {
thisAd = 0;
}
document.adshowboard.src=adImages[thisAd];
document.getElementById('ad').href = adURLS[thisAd];
setTimeout("rotate()", 4000);
}
}
// -->
</script>
For some reason when this script starts up it shows the #2 image listed in the <script> portion of the code. So if your inline image (the one in the <body> code) is #1 and it flickers on page load, try switching it to #2 and then it should be OK.
NOTE: To speed up or slow down, change the “4000″.
4000=4 seconds, 10000=10 seconds, etc..

Joomla 1.5 “Page Title – Site Name” SEO with YooTheme

Last Updated on Tuesday, 8 June 2010 06:52 Written by Damian Tuesday, 8 June 2010 06:52

It’s good practice to have your page title read before your site name to assist in SEO. Why this feature is not default or at least configurable within Joomla 1.5, I do not know. So here is what you need to get it done:

STEP 1:
Download Title Manager. Install and enable the plugin.

Set the alternative site name. For “Site name position”, choose “after page title”. For the separator, you can keep the dash or use something more eye-catching like a bullet point-> {s}•{s}

For the final setting, choose Yes to only show site name on default page.

STEP 2:
Go to Global Configuration>Site, delete your site name, and save.

You should now see your page titles in front of the site name (might have to clear a cache first).

STEP 3:

However, I still had a dash mark in front of my page title. This has been caused by YooTheme templates. Go to this file in your file manager:

templates/YOOTHEMETEMPLATENAME/config.php

Around line 26 you should see something like this:

// set title and params
$this->setTitle($mainframe->getCfg(‘sitename’).-.$this->getTitle());
$this->params->bind($template->params->toArray());

Delete the [space][dash][space] but leave the commas so it looks like this:

$this->setTitle($mainframe->getCfg(‘sitename’)..$this->getTitle());
$this->params->bind($template->params->toArray());

Save. And then celebrate.

E·lu·cu·brate

Last Updated on Tuesday, 16 March 2010 04:30 Written by Damian Tuesday, 16 March 2010 04:30

e·lu·cu·brate   [ih-loo-kyoo-breyt]
–verb (used with object),-brat·ed, -brat·ing.

to produce by long and intensive effort.

Copyright © 2010 DJC National, Inc. All Rights Reserved.