Author Topic: popup window with updated news  (Read 5030 times)

0 Members and 1 Guest are viewing this topic.

Offline Bomba

  • Full Member
  • ***
  • Posts: 202
    • View Profile
popup window with updated news
« on: June 12, 2003, 05:57:43 PM »
is it possible to show a popup window when user log in, showing updated news on the site?

this would work with cookies, and it would show only once to each user, or maybe only once per day to each user...

possible?
thanks

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
popup window with updated news
« Reply #1 on: June 12, 2003, 11:09:32 PM »
Quote from: Cr@zy Sash
well yes possible. Just add your code in user_logininfo.html
this way u'll get popup on any pages u go.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline brandkanne

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • http://www.jan-hendrik.com
popup window with updated news
« Reply #2 on: June 13, 2003, 02:46:36 PM »
eg.:
Code: [Select]
<a href="addresse.html" onclick="NewWindow(this.href,'name','312','285','no');return false"><font color="#C6EFF7">Name</font></a>
          <script language="javascript" type="text/javascript">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}
</script>

at function NewWindow
add an name an the popup link will open only in that window
I do not have anything against it, if you try all possible out on my side, but please announce you on not with TESTACCOUNT's to test purposes... Thank you for the understanding.