intro on website visit[Temp_solved] |
[eluser]Ivar89[/eluser]
Ok, I in a little trouble here... I've been out of the website building for almost 2 years now and now I promised my boss I could make a website. I have an old version of codeigniter 1.7.2 with my custom cms I created 2 years ago(don't really now how to update witout loosing thee function of the cms I want the following: When someone comes to www.website.com I want them to see a gif for 2 seconds, like some kind of loading screen I know there is a loading script but that only work if the website has a long loading time. can anyone help with this orrr? PS: is there a search library for codeigniter? Thanks in advance.
[eluser]Ivar89[/eluser]
hmmm, thanks but it ain't working. When It does load for 3 seconds(wait / sleep) but the image is not showing When I don't use sleep, and keep pressing f5 fast I can see the image real short, so the code for loading does work. any other ideas? I still haven't found any, still searching.
[eluser]Krystian[/eluser]
combine sleep with jQuery maybe? use sleep but in jQuery when the DOM loads show div for two sec with fixed position in the middle of the screen
[eluser]Ivar89[/eluser]
Yeah, I used JQuery for atleast a temp solution. Didn't need sleep that way. Code: $(function() { I got the delay because the show and hide animation was NOT the animation I wanted and changing that was more work then just doing this, since the 3second image is a gif anyway. |
Welcome Guest, Not a member yet? Register Sign In |