• I was wondering if someone could do this for me, because I suck with js, if you take a look here you will notice that each image has a shadow. I was wondering if someone could make me a js that would do this:

    Search each post for <img> tags,
    then format it like this:
    <div class=”shadow right” style=”width: [IMAGE HEIGHT + 9]px”><img src=”something.jpg”></div>

Viewing 4 replies - 1 through 4 (of 4 total)
  • You don’t need javascript to do that. There are many different effects created with CSS shadow filters and things. Here are some sites for more help on this:

    Mandarian Design and css experiments.

    Thread Starter idbehold

    (@idbehold)

    According to A List Apart you cannot do the dropshadow effect without extra divs, ergo I want a js that will automatically add the extra divs to the img tags.

    According to the two sites I listed above, it’s done all the time and javascript is not needed to add DIVs to anything. I’ve done it plenty of times, using borders (silver or grey border on right and bottom), double layers of DIVS with background images using the z-index, using the various MSIE and other browser filters to create a shadow or drop shadow, and many other techniques and NEVER used javascript to create the shadow effect.

    There are many ways of doing the same thing, I like keeping things simple.

    The link in this thread will take you to a page where there are all the instructions, as well as links to some css, images and a modifed quicktags file that add the drop shadow divs.
    http://wordpress.org/support/topic.php?id=30079#post-169994

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘JavaScript Help’ is closed to new replies.