Web Hosting - Why such poor service?

I recently parted ways with my web host. Why?
Check this out:
TO: newwebsite.com
Hi,
All of my sites are down.
Thanks,
Valerie
FROM: newwebsite.com
“We know it before you do. We are working on it.”
What kind of customer service is this? I used to work for a web development company. We NEVER treated our customers this poorly - and the company […]

Filed under: General

Creating Show/Hide Links in JavaScript

We have all seen those handy little show/hide buttons that hide content until a user wants to see it. Here is a walkthrough on how to create those visible/not visible divs.

Example:

function showCode(codeblockID, buttonID){
if (document.getElementById(codeblockID).style.display==’none’){
document.getElementById(codeblockID).style.display=”;
document.getElementById(buttonID).value=’Hide Code’;
}
else{
document.getElementById(codeblockID).style.display=’none’;
document.getElementById(buttonID).value=’Show Code’;
}
}
The html code for the Show/Hide Code button is:
<input type=”button” value=”Show Code” onclick=”showCode(’showBox’,’showButton’)” class=”submit” id=”showButton”/>
So let’s break this […]

Filed under: JavaScript