Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

JavaScript position issue

Featured Replies

HEy all,

 

I have 2 JavaScript Scripts ( sounds weird lol ) on my site, one of them is a clock, and the other one a hover box.

 

The thing is that I want the hover box script to work ( http://www.manoelmanach.com - at the bottom, it's applied to the boxes in "Kreationen", but only works in Opera, just go over them and you will understand what I'm talking about ), but this script cannot work because there's the clock script, which try to use the onload() which the other script needs. How do I "split" them ? Any idea ?

 

Please check my code, it will be easier to understand, idk really how to explain.

 

Cheers,

Revs.

Not looked into it much.. but on line 78-79 you've got the following lines..

 

 

78 ent.style.left = posx + offsetX;

79 ent.style.top = posy + offsetY;

 

You haven't actually defined what 'ent' is? That's throwing an error in FireFox.. try fixing that, that may be the only problem from stopping it working on browsers other than Opera.

  • Author

Oh okay, well I don't know much about JavaScript, and I haven't made this script, so … how do I define what ent is ?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.