Image rotate using CSS

You can make an image rotate using CSS as follow:

  <style type="text/css">
    #nice a:hover img {
    -moz-transform: rotate(-3deg);
   }
  </style>
<center id="nice">
<a href="http://google.com"><img src="http://phpmysqltalk.com/wp-content/uploads/2010/06/tom-and-jerry1.jpg" alt="" title="tom-and-jerry1" width="379" height="285" class="aligncenter size-full wp-image-128" /></a>
</center>




Note:
It doesn’t work on all IE versions :-)

Joomla 1.5: Template conditional code

Template conditional code.

There two types of Joomla conditions
1. Module count conditions
2. Parameter Conditions

Joomla module count conditions are base on whether a module name position is active.
Modules are tied into the menu system in a few ways but I’m going to mention only the basics
for now. So you can understand how module count conditions work with the menu system.

Modules can be assigned to show and hide based on the location of the user or access level.
To view module assignment control go to the Module Manager administrator.
Click on any module and scroll down to see the Menu Assignment Controls.

The default Joomla data install uses three menus Mainmenu, Keyconcept, ExamplePages.
At this point the Menu Assignment Control module will show on every page on your site.
(more…)

Joomla 1.5: File Structure of the Template

Below is a cutout of a Joomla 1.5 Template structure.
The chart below will give you a quick overview of what each file does.
There are few set rules for Joomla Templates as to what files you can add. Our Joomla Template Kit adds files and breaks down files into logical order when it comes down to
the CSS files. Not all the files are needed in a live template.

The default Joomla Template for Joomla 1.5.X

Joomla 1.5: What is a Joomla Component?

Joomla has both Front End & Back End components but the real question here is what is a component?

A component is an application within the Joomla framework some examples are the Joomla article system “com_content”, banners, menus, polls, links and contacts.
Some components are rendered in your Front End template as content for example articles. Others are used in the backend to manage things like user accounts.
(more…)

Magento: Add new container block

You can create a basic “container” as is done with the “right, left, and content” blocks by just adding something like

<block type="core/text_list" name="myblock" as="myblock"></block>

to page.xml. From there you can populate it with content blocks via the layout files as normal.
(more…)

Magento: How to add a new block?

If you want to reference a static block from inside of a CMS page or another static block use this syntax:

{{block  type="cms/block" block_id="my-new-block"}}

If you want to reference a static block from Layout Update XML use this syntax:

<block type="cms/block" name="position-9">
<action method="setBlockId"><block_id>position-9</block_id></action>
</block>

If you want to reference a static block from a PHTML file use this syntax:

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('my-new-block')->toHtml() ?>

Name and Email auto hide/show

To make Name and Email auto hide/show like this:






use this code:

<form method="post" name="Dateform">
  <input  name="nameTrip" value="Name" onfocus="if(this.value == 'Name') this.value =''" onblur="if (this.value == '') this.value='Name'" type="text">
  <input  name="emailTrip" value="E-mail" onfocus="if(this.value == 'E-mail') this.value =''" onblur="if (this.value=='') this.value='E-mail'" type="text">
  <textarea autocomplete="off"  name="textarea" onfocus="if(this.value == 'Details') this.value =''" onblur="if (this.value=='') this.value='Details'">Details</textarea>
</form>
Page 23 of 24«18192021222324

Pin It on Pinterest