Make a Div Into a Link

It’s easy to make any div into a link by using a bit of javascript. You can use this technique to make any div “clickable”. For example, you might want your “header” div to link to your home page. Here’s how it’s done. <div onclick=”location.href=’http://www.example.com’;” style=”cursor:pointer;”></div> you can make your header div clickable by using …

Create Left Image ico In H1 Div

HTML Code <div id=”prdleftcol”> <h1>Φωτογραφίες</h1> <h1>Gallery</h1> </div> CSS Code #prdleftcol{ width:260px; float:left; border-right:1px solid #E8EBEC; color:#666666; font-size:11px; } #prdleftcol  h1 { background: transparent url(../images/icn_more.gif) 0px 2px no-repeat; padding-left: 17px; padding-bottom: 5px; margin-top: 10px; font-size:14px } Image Download

Switch Case

Example #1 switch structure <?php if ($i == 0) { echo “i equals 0”; } elseif ($i == 1) { echo “i equals 1”; } elseif ($i == 2) { echo “i equals 2”; } switch ( $i) { case 0: echo “i equals 0”; break; case 1: echo “i equals 1”; break; case 2: echo “i equals 2”; break; } ?> Example #2 switch structure allows usage of strings <?php switch ($i) { case “apple”: echo “i is apple”; …

How do I enable SSH Remote Terminal inside Plesk?

First of all, when you mouse over to the ssh terminal icon, what message appear under the “Help & Support” section in the navigation pane? If it shows “..is not installed” then you have to install by going “Server->Updater-><your plesk version>”, then check on “SSHTerm – SSH Terminal java applet” and then click on the …