Jump to content

dsonesuk

Members
  • Content Count

    9,931
  • Joined

  • Last visited

  • Days Won

    35

dsonesuk last won the day on October 22

dsonesuk had the most liked content!

Community Reputation

831 Excellent

About dsonesuk

  • Rank
    w3schools Guru
  • Birthday July 15

Recent Profile Visitors

95,073 profile views
  1. dsonesuk

    user id

    The question remains, where is $user_id getting its value to compare with column email data, and why! If what the name of variable suggest a 'user id' NOT a email, are you comparing the user id with a email address? stored in column 'email'?
  2. dsonesuk

    3 columns

    With what we got to work with! I should get a graphics editor program photoshop, gimp and edit the image so it shows just 3 columns. html, css code or link, PLEASE!
  3. dsonesuk

    Sticky headers

    If it is a css file, you should be able override it, simple by referring to parent element id or class name that will give it a higher precedence over the current.
  4. dsonesuk

    Sticky headers

    If your other elements are using the property position: such as position: relative;( it should not be using position: absolute;) the header and the other element become layered, to combat this you should use the property z-index:. This has the ability to make a element layer lever higher than the next so is has higher precedence over the other elements. Give position: fixed; header z-index: 50; the others z-index: 10; this should fix this problem.
  5. Any html character codes (<, >, &) inserted into .text() is converted to html entity equivalent ('&lt', &gt; &amp;), if you use. var a = "Hello World! & Universe! &copy;"; $('#copyright').text('<span>' + a + '</span>'); You will actually see in the browser page <span>Hello World! & Universe! &copy;</span> because it is not html now, it shows as html entities textual character equivalents "&lt;span&gt;Hello World! &amp; Universe! &amp;copy; &lt;/span&gt;".
  6. .text() will render that as a textual representation and renders '<' and '>' as &lt; and &gt; so &copy; will become &amp;copy; use .html() instead.
  7. dsonesuk

    get session cookie value from the browser

    No! that stores the unique alphanumeric id associated to a specific user. Normally with these visitor counters, the minimum you would do is gather the ip_address and the date they visited and store that against a specific database unique id. Depending how in depth you want to go, the session could store the pages that user had visited to the id of that user stored in the database. A simple visitor counter https://www.youtube.com/watch?v=OfewMoH0RnA
  8. dsonesuk

    Automatic index.html loading

    You usually have the website logo linking to index. page, as well as a nav link.
  9. dsonesuk

    get session cookie value from the browser

    A session or cookie? They are not the same. The session when set lasts until the browser is closed and not stored on the users device. A cookie holds data and is stored on the user device until a set expiry date. You should use $_SESSIONS https://www.w3schools.com/php/php_sessions.asp
  10. dsonesuk

    Having difficulty creating popup descriptions

    If want multiple popups, the original script is only for a single pop-up per page. For multiple, use below https://www.w3schools.com/code/tryit.asp?filename=FWD99BV7TNYI The toggle is mentioned in this code also, elem.children[0].classList.toggle("show"); it toggle the class name 'show' so the css associated with this class takes effect .popup .show { visibility: visible; -webkit-animation: fadeIn 1s; animation: fadeIn 1s; } This also triggers the animation fadeIn @-webkit-keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} } @keyframes fadeIn { from {opacity: 0;} to {opacity:1 ;} }
  11. dsonesuk

    Automatic index.html loading

    There is a html/JavaScript option, I wouldn't personally use it, in preference to server side script option https://www.w3schools.com/howto/howto_html_include.asp As I know server side would always work, while html/JavaScript relies on JavaScript being enabled.
  12. dsonesuk

    Automatic index.html loading

    What you would normally do is use a server language such as php, create a single page with navigation only, with all links with home/index link page first. With this single nav page this can be included in all the other pages, just by using <?php include 'nav.php'; ?> the navigation would be inserted into that page, and any other php page using that code. amending the nav.page, means that amendment would instantly show that amendment for all page using that code also. This gives all the links to other page, on each page, i think this is what you are looking for? yes!
  13. dsonesuk

    Universal selector

    As they are part of the same document, representing main title heading and sub headings of importance, No! not really, as they, would come under the same parent element. IF they were scattered anywhere, then they are not used as they were properly intended.
  14. dsonesuk

    Automatic index.html loading

    The index.html is usually the home page for the the domains root directory, anyone entering http://cristianopi.altervista.org/ should land on a index.htm|htm|aspx|php, or , default.htm|htm|aspx|php file. any link using href="/" would take to that root directory and index or default file. Anyone clicking on google link, or saved link to another page on your site, should not be redirected to somewhere they didn't want go UNLESS that page did not exist anymore.
  15. dsonesuk

    user id

    Yes! you can lose the curly brackets for if conditions and it is acceptable, as long as you know what you are doing, else it will end up becoming very messy! Are you sure you want to go down that route?
×