I want to change the advertisement url for different browser/device viewport width. So far, I found a code to detect viewport width, I need detailed help to change the url. Thanks in advance!
This is the code for the viewport width:
Code:
var viewportwidth;
if (typeof window.innerWidth != 'undefined')
{
viewportwidth = window.innerWidth
}
else if (typeof document.documentElement != 'undefined'
I'm a proficient, standards-conscious HTML/CSS coder who is in over her head!
Here's my dilemma. I've got a page with some boilerplate text at the top and a "portfolio" area that extends beyond the fold. I need a coding strategy that would allow visitors to navigate the "pages" of the portfolio without forcing them back to the top of the page with every click.