Example 2

This example shows how to use widget with product image. It uses custom positioning and link.

Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<p id="xorWebBadge"><a href="http://www.xorbin.com/">Web Badge widget</a></p>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript"><!--
    var flashvars = {
        slogan: 'media/images/sale.png',
        corners: "24",
        r1: "24",
        r2: "30",
        rotationSpeed: "-15",
        bgColor: "FFCCCC",
        bgColor2: "FF0000",
        gradientAngle: "135",
        outlineWidth: "2",
        outlineColor: "FFFFFF",
        outline2Width: "2",
        outline2Color: "FF0000",
        posX: "10",
        posY: "-44",
        widgetUrl: "http://www.xorbin.com/"
    };
    swfobject.embedSWF(
        "xorWebBadge.swf",
        "xorWebBadge",
        "200",
        "200",
        "8",
        "expressInstall.swf",
        flashvars,
        {scale: "noscale", wmode: "transparent"}
    );
// --></script>

Result

Web Badge widget

How to use it?