Hey guys i am trying to add a draggable div inside a website and for some reason it's not working at all
// ==UserScript== // @name CF Informer by CyberSee // @namespace http://**CENSORED** // @description Critical Fusion // @include *kabam* // @require http://jqueryui.com/jquery-1.7.1.js // @require http://jqueryui.com/ui/jquery.ui.core.js // @require http://jqueryui.com/ui/jquery.ui.widget.js // @require http://jqueryui.com/ui/jquery.ui.mouse.js // @require http://jqueryui.com/ui/jquery.ui.draggable.js // ==/UserScript== $(function() {$( "#draggable" ).draggable();}); // Verssion var version = "1.0.1"; window.addEventListener("load", function load(event){ var centerdiv = document.createElement("div"); var dramiscenter, newElement; centerdiv.innerHTML = '<link rel="stylesheet" href="http:// jqueryui.com/themes/base/jquery.ui.all.css"><div id="draggable" class="ui-widget-content" style="border:1px solid black; height:410px; width:200px; left:8px; opacity:0.7; background-color:#000000; z-index: 3000; position:absolute; top:100px; color:#FFFFFF;"><span style="cursor:move; font-family:verdana; font-size:11px;">Drag me</ span><iframe style="height:400px; width:200px; left:8px; opacity:0.7; background-color:#000000;" src="http://**CENSORED**"></iframe></div>'; dramiscenter = document.getElementById('sitemap'); if (dramiscenter) {dramiscenter.parentNode.insertBefore(centerdiv, dramiscenter.nextSibling);} }, false); -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" 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/greasemonkey-users?hl=en.
