Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

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
309
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
309


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
309
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