Skip to end of metadata
Go to start of metadata

replace_image_src(<sel>, <url>)

Replace the source of the image tag having ID of <sel> with the given URL. The effect is that the picture changes without flicker on modern browsers if the image tag has height and weight attributes and replacement image has the same size.

The following ruleset shows replace_image_src() being used

The following demonstrates the preceding rule:

Labels: