- This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Trying to accomplish dynamic page load, which of these methods is better?
Here is my first attempt:
Untitled Document
This is my second attempt based on the code found at this tutorial: https://css-tricks.com/dynamic-page-replacing-content/
Untitled Document
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus
Just wondering which of these two methods is best and if any of my code can be improved upon.
Thank you!
well, I don’t know about that but I can tell you that you should take the css out and put it in it’s own document. Having css in your page is a bad idea. If you want to change the css, you have to do it in every page
this was just a quick page setup for testing purposes, typically I always put css in its own stylesheet.