Hey,

I've run into a little trouble with my script, when a user is logged
in to my system they get this piece of extra code under the div for a
picture (so that they can drag it).

<b>The actual DIV's code is:</b>
[code]
<div id="sticker-1" title="1" class="sticker_cactus" style='positon:
absolute; left: 54px; top: 190px; z-index: 317; '
onClick="zIndex(this);"><img src="store/images/
delete_entry_button.gif" align="right" href="#"
onclick="remove_sticker('sticker-1');" /></div>
[/code]

<b>The other CSS (defined in another CSS File) for that DIV is:</b>
[code]
.sticker_cactus {
                min-width: 86px;
                min-height: 80px;
                max-width: 86px;
                max-height: 80px;
                height: 80px;
                width: 86px;
                background-image: url(misc/sticker_cactus_anim.gif);
}
[/code]

<b>The javascript which is in the source if you're logged in.</b>
[code]
<script type="text/javascript" language="javascript" charset="utf-8">
// <![CDATA[

new Draggable(\'sticker-'. $echo12[ "id" ] .'\',
{
                                                scroll:window,
                                                revert:isNotWithinPlayground,
                                                zIndex:'.$z_index.'
                                                        }
);

// ]]>

</script>
[/code]

My problem is, the div's don't show up in the right position on the
page UNLESS you are logged in and get that piece of javascript, do you
have any idea of how I can play around to fix this? I'm only 15, so
I'm not great with Javascript, I'm only good at PHP/XHTML/SQL lol.

(Also, if you need my entire code just ask).

Thanks
Simon


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to