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.

Making a movable pop-up

Featured Replies

Hello,

How do i make a moveable pop-up for like news/events. It starts off in the corner but people can move it or close it. If they click it.... It goes to a page where it holds the information for the event.

 

Any ideas?

 

Thanks ;)

You will be looking at JavaScript to do this. It wont be too user friendly however, so keep all your key information accessible in standard HTML format.

 

I don't know the code, but it's nothing you will not find on Google.

  • Author

Okay cheers mate

Offtopic: Check your thread mate.

Because it's client side scripting, you will be able to get and see all the code in the page source.

 

You could adapt your own from http://www.deitel.com/

 

I do this all the time. That's what web development is all about. Why reinvent the wheel every time you want to do something when someone else already has?

 

Well, that's the case for things like this at least. ;)

  • Author

Haha xD.

I have already tried that but it don't work lol.

EDIT:

Look:

<script language="javascript">

/*

var browser_name = navigator.appName;

if (browser_name == 'Netscape'){

location.href = './english/';

}

*/

 

function showStatus(){

var i ;

var j ;

var k ;

var message = 'Welcome to KEN NAM INDUSTRIAL LTD. ';

 

var browser_name = navigator.appName;

 

if (browser_name == 'Netscape'){

k = 5000;

}else{

k = 20000;

}

 

for (i=1; i<=(message.length)*k; i++){

j = i % k;

if (j == 0){

self.status = message.substring(0, i / k );

}

}

}

showStatus();

//window.open("http://www.kennam.com/NewYear_Christmas/kennam2009_1.swf","ChristmasNewYear","toolbar=no,width=800,height=600,directories=no,status=no,scrollbars=no,resi

zable=no,menubar=no");

 

</script>

  • Author

:aggressive:

It's only my good friend tomcash answering =]

 

Lol come on people.... Help me?

Hey, sorry I can't be of more help. I could download it and try it myself but I'm currently working on something of my own and replying on this forum is a big enough distraction as it is. I just wanted to push you in the right direction.

 

If you practically download their source and copy their tags, and you have a somewhat decent understanding of what it is you're looking at. It will work. :)

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.