• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Habbo Sliding News/Promo Bullets

Junior Spellweaver
Joined
Jul 4, 2008
Messages
138
Reaction score
3
Hello Everyone!

I'm having an issue. I'm implementing a news/promo bullets on a me.php page.
I've styled the CSS files for the widget to fit the CMS, but now I'm having this issue:

qr3hanh - Habbo Sliding News/Promo Bullets - RaGEZONE Forums


I have the CSS, the JS file and even the script:

Code:
<script type="text/javascript">
                                document.observe("dom:loaded", function() { PromoSlideShow.init(); });
                            </script>

But nothing. I've even disabled Cloudflares Rocket Launcher... nothing.

Any thoughts? I'm implementing this on a BrainCMS.



And I'm getting this error on my console reffering to java script for bullets:

Uncaught TypeError: document.observe is not a function at me2:157
 

Attachments

You must be registered for see attachments list
Junior Spellweaver
Joined
Jul 28, 2019
Messages
162
Reaction score
308
Copying a script from one page to another doesn't work.

You're missing out on the javascript prototype framework.



 
Upvote 0
Junior Spellweaver
Joined
Jul 4, 2008
Messages
138
Reaction score
3
Copying a script from one page to another doesn't work.

You're missing out on the javascript prototype framework.




I understand, but I've added the missing JS script on the header and it still doesnt work for some reason.
Can you help me?
 
Upvote 0
Junior Spellweaver
Joined
Jul 28, 2019
Messages
162
Reaction score
308


Figure out what the error occurring is.
 
Upvote 0
Junior Spellweaver
Joined
Jul 4, 2008
Messages
138
Reaction score
3


Figure out what the error occurring is.

Uncaught TypeError: document.observe is not a function is originating from:

<script type="text/javascript">document.observe("dom:loaded", function() { PromoSlideShow.init(); });</script>

Basically the command in the script is not a function. How to add it?
 
Upvote 0
Junior Spellweaver
Joined
Jul 28, 2019
Messages
162
Reaction score
308
You've yet to add the prototype framework.

 
Upvote 0
Junior Spellweaver
Joined
Jul 4, 2008
Messages
138
Reaction score
3
You've yet to add the prototype framework.


I've added <script src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.3.0/prototype.js"></script> and still same problem...



As BrainCMS uses jquery overall, I tried to use this:

<script type="text/javascript">
$( document ).ready(function() {
PromoSlideShow.init
});
</script>

The error disappeared, but the sliding does not occur.
 
Upvote 0
Back
Top