Archive for the ‘CSS’ Category
Using Google CSE on Drupal
The goal was to use Google CSE on drupal, and while I got it working it was not near as easy as I would have liked.
At first it seemed simple, google provides two pieces of code; One to build the search form, and one to display the results within your own page.
I added a block for the Google search form which was quite simple. After creating the block I removed Drupals search block and added the new Google search block. (On creating the search engine I gave it the url of http://cross-tags.com/search-result for the results to appear).
Using jQuery to alter the search form
I had someone today request that the search form on their site contain the word search and for that word to disappear once the user clicked on it (onfocus). I have set this sites search to do that for now.
On prior plain or other non Drupal sites I'd usually just set the value in the field and add an onfocus to clear it. Not wanting to hook the search form a quick jQuery addition to the template not only worked but didn't have the issues of browsers with out javascript enabled.
Website Validation and Optimization
While I spend most of my time adding or fixing features on Salem-News.com, every now and then I have to remember to check for validity and optimization.
3D Corner with Gimp and CSS
I wanted to add a 3d corner effect to the posts displayed on the front page of this blog to give it less of a plain flat page. I created a quick drop shadow image with the GIMP and with a quick alteration of my templates CSS had it up.
Read the rest of this entry »