Jump to content

dsonesuk

Members
  • Posts

    11,220
  • Joined

  • Last visited

  • Days Won

    117

dsonesuk last won the day on January 6

dsonesuk had the most liked content!

About dsonesuk

  • Birthday July 15

Recent Profile Visitors

108,866 profile views

dsonesuk's Achievements

w3schools Guru

w3schools Guru (7/7)

953

Reputation

  1. As it is a carousel it probably is looping to add a new ad at a set time. So it might be better to hide than remove. As your script only runs once after 5sec it catch first one only, unless you use setInterval then it will repeat every 5 sec. To reduce repeating loops check this element exists by checking length.
  2. That will look for attribute with empty string value. Try $('span').attr('foobar').remove();
  3. You just need to use 'this' which is the element that the onclick event occurred as in changeImage(this, 'bannerImage_left'); then within function function changeImage(elem, bannerId) get the src: from 1st parameter elem elem.src and remove '_thumb' with elem.src.replace('_thumb',''); then add converted src to 2nd parameter bannerid ref src using document.getElementById(bannerId).src
  4. dsonesuk

    table layout

    If you are going to table layout which i don't recommend, I suggest you use more columns as most grid based framework use 10 to 12 grid system, with the 12 given you possibility of 1/4s 1/3s etc and few more division than the 10 grid system.
  5. Yea, I know what you mean. If only there was a website of some kind that would explain what these things are and how to implement them....👀🤦
  6. 1. Use !important. 2. Use higher id ref to parent container or even a sibling using '+' which represents the next following element. 3. Use :not(selector) to not include css of specific selector id, class etc.
  7. Make sure you use post and not get method, get allows much less characters than post.
  8. create external JSON file and use Ajax to read file contents, clear current, add new, OR append new to current using server language then reread that JSON file to: const event ( don't think variable event won't be allowed being JavaScript 'keyword' an all.
  9. Remember length starts from 1, index from 0, this error usually happens when a index of element doesn't exist because its exceeded the max index number.
  10. else { panel.style.maxHeight = panel.scrollHeight + 'px' } });> } </script> BOLD angled closing bracket.
  11. Depends if you are debugging it through a localhost server or the o/s file system.
  12. Without link the best guess is its not setup to be responsive using viewport setting meta tag and media queries.
  13. Being only a list of classes you are not required to use class identifier '.' at beginning.
×
×
  • Create New...