Website Coding

Discussion in 'Software' started by Harvey, Apr 30, 2004.

  1. Harvey

    Harvey Private E-2

    Hello Fellow Geekers,
    Just recently I opened a website,or to put it better I opened it with a home page of one of my products and a sign that reads:"This website is under Design". My problem is this: I would like to find a javascript coding that would automatically change the home page with another home page based on the number of times a person comes to my site. I had heard that there is such a coding that does it by checking cookies. Could someone pleasssssssse point me to where I can find it. I spend the last 5 to 6 hours googling for it. Any and all help is greatly appreciated.
    Thanks, Fellow Geekers
    Harvey :)
     
  2. Kodo

    Kodo SNATCHSQUATCH

  3. goldfish

    goldfish Lt. Sushi.DC

    As a question, why do you want the homepage to change depending on the number of times they visit? They could be an easier way of doing this using server side scripting, if that is available to you. If you give a reason we could possibly point you towards a better method to do this in. (Sorry but i just dont like using javascript to run essential tasks on a website, it depends on the user accessing it and their setup, so if they dont have javascript enabled the website wont work correctly for them.. which is real bad)
     
  4. Harvey

    Harvey Private E-2

    Goldfish,
    The reason why I want to change the homepage is because the website is not officially opened yet ; however, I still would like to give my visitors a view of some of my things to come. If you know of a better method, I am all ears. I guess that at this point I should put a plug in for my future website. (Consider it a commercial break :)) Bilques & Co.
    I make jewelry :cool:
     
  5. goldfish

    goldfish Lt. Sushi.DC

    Ooh, thats quite a nice java applet youve got on the front page!

    Well, what i woudl suggest is perhaps getting a few screenshots/photos of the website in a browswer, and use a slideshow sort of device to show them in sequence.
     
  6. mag00

    mag00 Sergeant

    I have java disabled on my mac as many applets don't load or are designed to jam my mac. I have had many freezes with the applet loading on my bottom status bar. I did enable java to check and yours works nicely, good job.
     
  7. mag00

    mag00 Sergeant

    I found this while searching for boolean logic.
    Maybe with some help from others you could modify it to work.

    The example below draws a box on an HTML page and counts the number of times you have clicked inside the box.

    import java.applet.*;
    import java.awt.*;
    public class exfour extends Applet
    {
    int i;
    public void init()
    {
    resize(300,300);
    }
    public void paint(Graphics g)
    {
    g.drawString("You clicked the mouse "+i+" Times",50,50);
    }
    public boolean mouseUp(Event e, int x, int y)
    {
    i++;
    repaint();
    return true;
    }
    }
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds