Enter Image

Discussion in 'HTML & Website Design' started by obeegoone, Dec 9, 2008.

  1. #1
    Hi

    I was thinking off making an image so people could press enter to get to our website,i started to google and the only thing i could find was people saying that i should make an file called index.html and put the script for images and links in there dosent matter if you had index.php they said it will take index.html first :/ lol wich it dosent,me and my friend made the script a few minutes ago tested it when we linked to the html file works fine

    But how do i do now then since i alredy have an index.php wich i cant remove lol

    So what you say about that ? :D
     
    obeegoone, Dec 9, 2008 IP
  2. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #2
    You really should have only one index file. index.php, index.htm, index.html etc will all work.

    I can't understand you.
     
    Kerosene, Dec 9, 2008 IP
  3. obeegoone

    obeegoone Peon

    Messages:
    187
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Okey sorry little bad explination hehe

    I alredy have 1 index.php so my questions is how do i do this ? To get my image at the very first when someone write in my url to my website
     
    obeegoone, Dec 9, 2008 IP
  4. dejangex

    dejangex Peon

    Messages:
    113
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    U can use this code in your main index:

    <a href"insert-your-path-to-home-page.html" title="Enter Website"><img src="path-to-image.jpg" alt="Enter site" /></a>
    HTML:
    Remember to put this between the <body> and </body> tags. Was that what you meant?
     
    dejangex, Dec 9, 2008 IP
  5. obeegoone

    obeegoone Peon

    Messages:
    187
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hmm not sure and on my index i dont have body :p

    I try to make an new explination

    The hing im trying todo is making an images with a picture were it says Enter Site and when comeone click on it they gets into my website i alredy have the script and i have made th eimages it works fine 100% sure

    The obly thign is i dont know how to make it work since i have index.php alredy :/
     
    obeegoone, Dec 9, 2008 IP
  6. jamieellis

    jamieellis Active Member

    Messages:
    427
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Change the landing page to index.html in your control panel, though as previously stated you shouldn't really have 2 index files.

    Then use the code dejangex provided and point the link to index.php:

    index.html:
     
    jamieellis, Dec 9, 2008 IP
  7. obeegoone

    obeegoone Peon

    Messages:
    187
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Well i giuess i have to point my domain name to index.html then,becuse have another index.php does almost every website have have no idea how other people do when they use this but i point trough my domain then thanks
     
    obeegoone, Dec 9, 2008 IP
  8. cheapez

    cheapez Active Member

    Messages:
    1,123
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    78
    #8
    I'm guessing you want a 'Welcome Page' where you welcome users, have them take a look an agreement then they can click ENTER to enter the site, right?

    You can renamed your index.php to something else like example.php . There will be no problems with that I think.

    Then you can create a nice looking page called index.html, in that page you can put your 'Enter Button' which is linking to exmaple.php and upload it to your root.
     
    cheapez, Dec 9, 2008 IP
  9. JamesSmith110

    JamesSmith110 Active Member

    Messages:
    259
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    80
    Digital Goods:
    1
    #9
    a secondary option for when you cannot rename index.php (and there is some cases when it has to be the same name) is to have the main folder where you have your index.htm then have a folder called site (or what ever name) and have it go to that when you click the image.

    alternatively you can have index.htm and php and it will read the one that was uploaded first if i remember correctly,
     
    JamesSmith110, Dec 10, 2008 IP
  10. JWRmedia

    JWRmedia Banned

    Messages:
    499
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #10
    If you can't rename your index file, you can change the directory index in your .htaccess file:

    DirectoryIndex welcomepage.html

    From your welcomepage.html, you can link to index.html.
     
    JWRmedia, Dec 11, 2008 IP
  11. feonix

    feonix Peon

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    This is a server setting which file it will access when someone goes to your page. You could make it use "gsufsdfsf.html" if you wanted to. Are you using Apache or what?
     
    feonix, Dec 11, 2008 IP