Jump to content
xisto Community

midnitesun

Members
  • Content Count

    182
  • Joined

  • Last visited

  1. i assume you want it in php ? if so i can provide you with one which is fully validated and tested for security like sql injection but i'll need to add email verification to it yea in my code you just have to include an external file to all pages you want to restrict but you need not change much or any of your code , just include the file and thats all
  2. yea thanks mike , made some changes and put a demo link too <body onload="hide('xx')"><script language="JavaScript" type="text/javascript">function hide(obj){document.getElementById(obj).style.visibility="hidden";}function show(obj){document.getElementById(obj).style.visibility="visible";}</script><div id="ss" align="center"><a href="gg" class="main" onclick="hide('ss');show('xx');return false;">change div</a><p>this is the div displayed when page loads</div><div id="xx" align="center"><a href="gg" class="main" onclick="hide('xx');show('ss');return false;">show previous div</a><p>now this div is shown because you clicked on the link</div> demo
  3. so here is a simple tutorial of a code i wrote today and thought it may prove useful to someone out here too what it does is show a div when the page loads and then when user clicks on a link the div is hidden another div is shown ,you can do a lot based on this code <body onload="hide('xx')"><script language="JavaScript" type="text/javascript">function hide(obj){document.getElementById(obj).style.visibility="hidden";}function show(obj){document.getElementById(obj).style.visibility="visible";}</script><a href="gg" class="main" onclick="hide('ss');show('xx');return false;">change div</a><div id="ss" align="center">this is the div displayed when page loads</div><div id="xx" align="center">now this div is shown because you clicked on the link</div>
  4. you can hide the table and its contents without even using div tags <table style="display:none" border="1" width="100%" id="table1" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr></table> same can be applied to tr and td tags too , pretty useful when you dont need a particular peice of for the time being but will need later, so you dont have to go through your code again just when you need it simply remove display:none
  5. now i am really confused , from where is $row coming ? you have given $row1 as the mysql fetch array so the code should i believe be $row1['logins'] instead of $row['logins'] , it seems you are trying to display all logins as an array , so if i am correct you can use while $row1 = mysql_fetch_array($result1) {$new = $row1['logins'];echo $new;} also try avoiding numbers in your code, it can be confusing both for you and your code
  6. if you dont understand the question then i dont understand why you replied to it and also no need to be rude as i cant see any horrible run on anything
  7. well i believe saint-michael had been making tutorials on how to design in css, which i am sure will be indeed very good for you to start with . yea it is always hard to leave somthing we are familiar and jump onto unfamiliar territory , but it's not going to be more difficult, infact it is more easy ... i should have been more comprehensive on my original post
  8. am i missing a point here ??i totally agree it will take ages for browsers to stop supporting tables ... not only because 90% of the current web sites may be using it , but we cant deny the fact that the tables that were never intended for layout purposes (tables are for data - layout grids are an abuse of the mark-up, an abuse that we?ve come to live with and accept a bit land now it ceems we cant live wthout it too) wont be used in webpage designing in the near future and its not just big sites like hotmail that have switched to pure css , but you would see that many have resorted to css if not before
  9. since tables are deprecated and not intended to be used for website layouts and future browsers may not support tables i thought of listing a few advantages of using tableless designs for web pages the first and obviously the most important reason is faster loading time ofcourse yo all will i think know the fundamental truth - tables load slowly one way to counter this problem itself becomes a bigger problem, that is to set the width and height of all your table elements , now think how many td open tags you'll be having in a average table based layout ? tons , so having to set all the values explicitly only adds to the page size and thus loading time search engine optimization the fact that you can put your most important content at the top of your page without affecting you page layout makes your page better optimized for search engines. for example lets say i have a navigation bar at the left with links that are actually great keywords too, i can move the navigation bar higher up my code wiothut having any affect on my layout because i will be using css to position my navigation bar ,that way search enignes can more clearly find common words throughout your document without having to filter through code, search engines tend to prioritize that have higher content to code ratio , putting all your style elements into an external css stylesheet makes your site highly content based to a search engine.Tableless layouts, as previously mentioned, decrease page size and loading time - another bonus to search engines. hopefully this article may have helped in getting started on understanding why to use a tableless layout and the benifits so read as much about css as you can here and elsewhere and jumping to tableless design will be just a matter of time
  10. oh , it's sad to see you leaving , but i get it that you aren't leaving for good right ? so do come here whenever you can and i am sure i am not the only one who will miss you
  11. i am not sure if you viewed it correctly , body and footer should be there
  12. thanx saint michael but i 'd rather optimize myself using photoshop that way i can reduce the image size yet retain the quality i want but i am sure it will be useful to someone
  13. hey thanks saint michael those are very good suggestions you gave , infact the best anybody gave upto now i just wish you gave them yesterday right now it's fully done in photoshop but the final product will be optimised using css and as minimun images as possible , i dont want the size of the page to exceed 25 or 20k
  14. thank you guys for your help , i made some changes and came up with a design that is a basically a variation of the first design which almost everyone said they liked but i am still open to creative ideas and comments final design
  15. so i am redesigning my homepage ( since i am going to take a new domain ) , i made 3 deisgns which i like very much , so here i am breakin my head over which one to choose from , then i decided it is time to get your opinion, each design is unique in its own way even though demo-final-a and demo-final-b look very much similar the impact each one can create is very different , you may also think the page is very satatic but the middle banner with the girl will be in flash to provide dynamacy , also the grey box next to it will be displaying random videos and the menu too if the page dont get too heavy i may do in flash , so i am very much looking forward to your opinion here, let me know which design you like most link 1 demo a link 2 demo b link 3 demo c ------- edited ------- first of all let me thank you all for your kind comments , i am glad most people said they like the first design because thats the one i like too , i totally agree that the third one is looking out of place because of the blue and the second one because of the header's color proximity with the menu , i wanted to make a clean but visually appealing and professional looking design so according to the feedback i got and my own imaginations here is the final one i came up with but before i will start htmlazing it ( which i will start tonight) i am still open to your ideas and comments on the final one but now not on the others , so here's the link final design also please note that the text where the girl is will change , if you ask me the placement is looking a bit odd but since i am going to do it in flash i just put some dummy text and the icons too aren't necessarily final especially the third one.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.