Help! Help! Help! My first one is: I need to popup a window on my site, I want it to be once per unique visitor (12hours) if he isnt unique so there will be no popup. I know I can use cookies but people often block them. What is the best way to do it? Second Q: If I have a value in a var (lets say "var a1 = 5") on an html page and I want to use this var and its value on another page how can I do it? The thing is that its value changes and I want the change to accure on both pages, If the value changes in page1 it should automaticly change in page2 as well. The third and the last (Thanks G.D!) If I have something like 100 vars on a page and each var has its own value(number) and the values change (often) and I want the script to choose the var with the highest value and do some function, how can I do it? The values change hourly and the amount of vars is just too big. Thank you for your time! Any help?
1) If you really don't want to use cookies, the best way is to use a scripting language for this (like php).Save th IP in the database, and check for the last time he visited your site. You will also need some script to clean up the database at some time, as there will be a lot of entries. 2) Same thing. Use php, or send that variable in a query string, if it has changed it's value. 3) Put all the variables in an array and use yourArray.max()