The banner ads can't be done this way. Beside the banner is javascript in itself, the size and contents are done when we choose ads.
So, need to change the whole banner script block.
User Profile
Collapse
-
yes, I got the user's browser viewport width via first javascrip. Now I need to deliver different content for different width.Leave a comment:
-
Thanks! But this code doesn't say the condition of viewport. I need to inset a big banner if viewport>1024, and insert a small banner if viewport<1024
How to add this condition in your code?Leave a comment:
-
how to change src value in javascript?
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'
-
How to pick a pictures on click
I have 100 pictures. Each picture is a question. There are 3 answers to choose and one button to change question.
My questions is--
#1.How can I match the correct answer within the 3 choices?
#2.How to change the picture when click Change question?
Regards
No activity results to display
Show More
Leave a comment: