I tried to create a plugin for jQuery, but there is a problem.
This is the .html: http://pastebin.com/amLSFSZX
and this is the .js file: http://pastebin.com/CmrHzKRk
I want 4 arrows in a div.
- Top Middle
- Right Middle
- Bottom Middle
- Left Middle
If it's not packed in a plugin it works fine.
But if I include the plugin, it bugs.
This is the output via Firebug:
<img class="arrows" src="arrow-top.png" alt="Arrow-Top" style="height: 26px; width: 20px; top: 50px; left: 480480px; position: absolute; display: none;">
<img class="arrows" src="arrow-right.png" alt="Arrow-Top" style="position: absolute; display: none;">
<img class="arrows" src="arrow-bottom.png" alt="Arrow-Top" style="left: 480480px; position: absolute; display: none;">
<img class="arrows" src="arrow-left.png" alt="Arrow-Top" style="height: 20px; width: 26px; top: 50250px; left: 480px; position: absolute; display: none;">
Can anyone help? Sorry for my bad english.