Highlight Image Snippets


JavaScript Code example to highlight an Image on Mouseover

13 August, 2011   

If you're looking for a way to spice up your web site, this JavaScript tip may be just what you're looking for. You can use JavaScript to highlight an image when you place your mouse over it. This JavaScript tip provides a great way to highlight your navigational buttons or whatever you'd like.

The example below shows how to produce a png image from python code, but pygments supports lexers for many other languages and its formatter classes can produce other image formats too. The ImageFormatter class allows to set various parameters of the resulting images.

How to display visitors IP in an Image using PHP

You may use this code to highlight specific words in your displaying search results.

05 August, 2014   

PHP code example to highlight words in a string.

05 December, 2012   

Instead of providing a traditional address to the image, the image file data is base64-encoded and stuffed within the src attribute. Doing so saves a network request for each image, and prevent exposure of directory paths. Please note that IE7 and below are not compatibles with data URIs.

CSS code to highlight links that open in a new window

Several hundred user notes on the str_replace page later, and we have a function that provides a variety of text highlighting options for plaintext or HTML strings.

Essentially the trick is to draw the panel/frame/etc.

Essentially the trick is to draw the panel/frame/etc. into a BufferedImage and use the ImageIO class to write it to an image file.

28 January, 2013   

Save a screen capture of a Java Frame/Panel/Window

15 April, 2012   

PHP code example for an image CAPTCHA.

I had to scan a bunch of paper documents (one image per page), and upload them all to a web site that would accept only one PDF file containing the whole set.

02 June, 2011   

This is your most basic version of an image CAPTCHA.

Java code example to create thumbnail of an image

26 April, 2012   

JavaScript code example for Table Row Highlight

26 April, 2012   

Code for Table Row Highlight By JavaScript

18 February, 2012   

CSS code example for a background image repeat vertically (y-axis), horizontally (x-axis), in both directions, or in neither direction.

This PHP script will get the day of the week from the server date and then display an image (jpg or gif) to match.