PDA

View Full Version : trouble with random color


Soliloquy
20 Apr 2007, 06:34
I want to randomly change the color of my Google ad to one of four colors, and am having trouble getting it to work. I created a new plugin using the navbits hook with the following code:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


and put the adsense code in the navbar with $adcolor for the background and border value, but when I load the page it's blank where the variable should be. What am I doing wrong?

Redlinemotorsports
20 Apr 2007, 06:39
I believe you need to use global_start as far as using the correct hook. (Not looking at them at the moment so I'm not 100% sure)

Soliloquy
20 Apr 2007, 07:16
Thank you, that worked:)