jQuery Map Image

I'm using the following "Mapster" code to place an outline and tooltip on an image.  Everything works fine however, I can't seem to re-position the "tooltip" .  Can you see what I may be doing wrong with my code?
<script type='text/javascript'>
$(window).load(function(){
var image = $('#mapping');
var oklahoma = 'Oklahoma';
$('img').mapster({
            fill: true,
            fillColor: '000000',
            fillColorMask: 'FFFFFF',
            fillOpacity: 0.5,
            stroke: true,
            strokeColor: 'ff0000',
            strokeOpacity: 1,
            strokeWidth: 1,
            isSelectable: false,
            singleSelect: true,
            mapKey: 'name',
            listKey: 'name',
            toolTipContainer: '<div style="position:relative;z-index:100;margin-top:-300px;left:-100px;width:100px; height:100px; color:#ffffff"> </div>', 
            showToolTip: true,
toolTipClose: ["area-mouseout"],
areas: [{
        key: "oklahoma",
        toolTip: oklahoma
    }]
        })
        .mapster('tooltip','oklahoma');
});
</script>

Open in new window

LVL 7
rgranlundAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
With negative margins, white color and no text (really important) I can't see why this would work :)

Change from

            toolTipContainer: '<div style="position:relative;z-index:100;margin-top:-300px;left:-100px;width:100px; height:100px; color:#ffffff"> </div>', 

Open in new window


to
            toolTipContainer: '<div>tool tip test </div>', 

Open in new window

as a start.

Then start adding back your styles one by one.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.