Forum Moderators: martinibuster

Message Too Old, No Replies

Another control panel change

Ad layout code page

         

Jenstar

7:40 am on Feb 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just a minor change - I went to cut and paste a specific line of the AdSense javascript to add to one I already had on a page, and it no longer allows you to select a single line of the script. Clicking inside the box now highlights the entire script, and does not allow you to select only bits and pieces of the script.

I am guessing it is there to reinforce the "copy the javascript exactly as it appears" and not make any modifications to it when you put it on the webpage.

Powdork

7:46 am on Feb 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you want to highlight specific code you can do so as long as js is disabled in your browser.

annej

11:10 pm on Feb 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I noticed the same thing a few days ago.

I just copy and paste it to something like note pad, make my changes (usually a color change) then paste it on my webpage

skipfactor

11:37 pm on Feb 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Nice simple trick I haven't seen before; I'll be putting it to good use.
<textarea readonly name="textarea" onClick="this.focus();this.select()">

FromRocky

11:43 pm on Feb 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have seen this at least 1 week ago and used the same procedure as annej mentioned above.

skipfactor

11:57 pm on Feb 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Of course you can go around it. I don't think the intent is to thwart anyone. It's just easier on most users, and they're less apt to get it wrong.

Seige

4:03 pm on Feb 25, 2005 (gmt 0)

10+ Year Member



The website I run has different layout and colour combination each time a visitor visits. To make the adsense fit into the ever-changing layout is a problem. Hence I use a little Javascript codes to force it to adapt into my page. I'm not sure if this is legal, but after hours of checking the way adsense is displayed with the codes below, everything looked right.

as-ad-bgcolor = document.bgcolor.substr(1,6);
as-ad-text = document.fgcolor.substr(1,6);
as-ad-link = document.linkcolor.substr(1,6);
as-ad-border = document.bgcolor.substr(1,6);

Anybody have any comments?

[edited by: Seige at 4:08 pm (utc) on Feb. 25, 2005]

Jenstar

4:05 pm on Feb 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is against the AdSense terms to change the javascript in any way, even if it behaves the same way.

Nutter

5:14 pm on Feb 25, 2005 (gmt 0)

10+ Year Member



You _should_ be able to do the same thing server side. Use PHP, ASP, etc to output the js. Then, you're not altering the script.

Seige

9:26 pm on Feb 25, 2005 (gmt 0)

10+ Year Member



It is against the AdSense terms to change the javascript in any way, even if it behaves the same way.
Oh no!

You _should_ be able to do the same thing server side. Use PHP, ASP, etc to output the js. Then, you're not altering the script.
This is a problem, for I do not have access to server side scripts. :(