1 out of 6 rated this helpful - Rate this topic

src Attribute | src Property

Sets or retrieves the URL of an image that the AlphaImageLoader filter loads.

Syntax

HTML
{ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(
    src = sURL ... ) ... }
Scripting
object.filters.item(
    "DXImageTransform.Microsoft.AlphaImageLoader").src [ = sURL ]

Possible Values

sURL String that specifies or receives the URL to load.

The property is read/write. The property has no default value.

Remarks

The loaded image becomes the display boundary for the object. You can resize or clip the image by setting the sizingMethod property of the filter.

The AlphaImageLoader filter will be ignored if no src value is set.

Example

This example loads an image from the URL into a DIV element.


<!-- This DIV is the target container for the filter.  -->        
<DIV ID="oDiv" STYLE="position:relative;  width:200px; color:gold; 
        filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(
                src='/workshop/graphics/earglobe.gif');" >
     The World
</DIV>

Applies To

AlphaImageLoader
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
This attribute is always relative to page URL
So when you define AlphaImageLoader in CSS file you should use absolute path is src, but NOT relative to CSS file location (as for normal background images).