winmastergames Posted February 23, 2008 Share Posted February 23, 2008 Well im making a script and nearly finished and i get Already Registered in DOM! error does anyone know how to fix this? im using free javascript scripts well im using Css Dock and Prototype Window for my website here is the Main Script: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link href="themes/default.css" rel="stylesheet" type="text/css"/> <link href="themes/alphacube.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="javascripts/prototype.js"> </script> <script type="text/javascript" src="javascripts/effects.js"> </script> <script type="text/javascript" src="javascripts/window.js"> </script> <script type="text/javascript" src="javascripts/window_effects.js"> </script> <script type="text/javascript" src="javascripts/debug.js"> </script> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/interface.js"></script> <!--[if lt IE 7]> <style type="text/css"> .dock img { behavior: url(iepngfix.htc) } </style> <![endif]--> <style> body { font: 11px Arial, Helvetica, sans-serif; background: #ffffff url(images/main-bg.gif); padding: 0; margin: 0; } img { border: none; } /* dock - top */ .dock { position: relative; height: 50px; text-align: center; } .dock-container { position: absolute; height: 50px; background: url(images/dock-bg2.gif); padding-left: 20px; } a.dock-item { display: block; width: 40px; color: #000; position: absolute; top: 0px; text-align: center; text-decoration: none; font: bold 12px Arial, Helvetica, sans-serif; } .dock-item img { border: none; margin: 5px 10px 0px; width: 100%; } .dock-item span { display: none; padding-left: 20px; } /* dock2 - bottom */ #dock2 { width: 100%; bottom: 0px; position: absolute; left: 0px; } .dock-container2 { position: absolute; height: 50px; background: url(images/dock-bg.gif); padding-left: 20px; } a.dock-item2 { display: block; font: bold 12px Arial, Helvetica, sans-serif; width: 40px; color: #000; bottom: 0px; position: absolute; text-align: center; text-decoration: none; } .dock-item2 span { display: none; padding-left: 20px; } .dock-item2 img { border: none; margin: 5px 10px 0px; width: 100%; } </style> </head> <body> <script type="text/javascript"> function wow1() { var win = new Window({id: "wow1", className: "alphacube", title: "Home", width:400, height:150, top:0, left: 1}); win.getContent().innerHTML = "<h1>Welcome!</h1>Welcome to WMG Online OS<br><a href='#' onclick='Windows.getWindow(\"wow1\").maximize()'>Maximize me</a>"; win.setDestroyOnClose(); win.show(); win.setConstraint(true, {left:10, right:20}) win.toFront(); } </script> <div id="border"> <div id="container"></div> </div> <script> wow1(); </script> <!--bottom dock --> <div class="dock" id="dock2"> <div class="dock-container2"> <a class="dock-item2" href="#" onclick='Windows.getWindow(\"wow1\").maximize()'><span>Home</span><img src="images/home.png" alt="home" /></a> <a class="dock-item2" href='#' onclick='Windows.getWindow(\"wow1\").maximize()'><span>Contact</span><img src="images/email.png" alt="contact" /></a> </div> </div> <!--dock menu JS options --> <script type="text/javascript"> $(document).ready( function() { $('#dock2').Fisheye( { maxWidth: 60, items: 'a', itemsText: 'span', container: '.dock-container2', itemWidth: 40, proximity: 80, alignment : 'left', valign: 'bottom', halign : 'center' } ) } ); </script> </body> </html> If you need the Javascript stuff they are downloadable from these websites: http://prototype-window.xilinus.com/download/windows_js_1.3.ziphttp://www.ndesign-studio.com/file/css-dock-menu.zip I dont want to post them cause they are like all together about 8 files very long coding so there we go Thanks For your time Quote Link to comment Share on other sites More sharing options...
GameYin Posted February 23, 2008 Share Posted February 23, 2008 If it's saying that the dom is registered, maybe your using a reserved function word? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.