Loading....
Recent Article links:

Forum

You must be logged in to post Login

Search Forums:


 






how can i change the id at image

No Tags
UserPost

February 16, 2010


francisco

how can i change the id at image?

February 16, 2010


admin

Post edited 12:22 pm – February 16, 2010 by admin


var taghim = new tagging(
            'taghim',
            'xxxxxxxxxxxxxxx', // REGISTER CODE (INSERT YOUTS)
            'cropp',
            3, //this is picture ID you have to replace i with your variable for example your variable is $picture_id hence you have to replase 3 with

$picture_id
            {
                ajaxRequestURL : 'tag.php',
                ajaxReturnID : 'ret',
                showDescription : true,
                    showTagOnImage : false,
                autoInit : false,

                displayOnInit : false,
                applyColors: true,
                minWidth : 50,
                minHeight : 50
            }
             );
                 taghim.setOption( 'enableReenterer', true );
    taghim.setOption( 'showTagBorders', true );

    taghim.setOption( 'zoom', true );
    taghim.setOption( 'zoomParameters', {
                        "1x" : { 'w' : 50, 'h' : 50 },  
                        "3x" : { 'w' : 150, 'h' : 150 }

                        } );
    taghim.setOption( 'onTagClick', function( oParams, oAdditions ){ alert( 'You clicked on tag.nTag coords is ' + oParams['X1'] + 'x' + oParams['Y1'] + '.nTag id is ' + oAdditions['tagId']); } );

    taghim.showTags();

No Tags