• I wanted a simple way to rotate homegrown ads on my 3 WP sites and one PHP board. My knowledge of coding is a 4 out of ten, and so I needed something EASY. I found this~

    https://www.designerwiz.com/JavaScripts/bannereffects/single_banner_rotator_on_refresh.htm

    ~ and pasted it into the just mentioned sites. In Firefox (Mac OS), all is good. In Safari (Mac OS X), problems. Two of my WP blogs were fine. One blog caused everything below my banners to be ‘linked’ to where the banner was heading. Plus, further down the page, the poor theme exploded. Images and words everywhere.

    Also, on XP, IE made the banners disappear entirely.

    Again, I don’t know much about coding, so I don’t know if I was supposed to ‘cage’ this java script somehow, to keep it from bleeding out of it’s designated area.

    If you go here, you can see how I altered the java code. I took out the height and width restrictions:

    https://www.macliberals.com/v-web/bulletin/bb/viewtopic.php?p=10137#10137

    Is there anything I can do? I really want these banners.

    I hope this was enough info, and thanks for your efforts,

    TOAO

Viewing 5 replies - 16 through 20 (of 20 total)
  • Oopsy! I’ve done that to my home directory once before and boy was that a nightmare!

    Anyway that script has the old syntax of <SCRIPT language="javascript">, which should be replaced with what I quoted above. also all tags in CHTML should be lower case for consistency.

    Thread Starter TheOneAndOnly

    (@theoneandonly)

    Luckily I only really lost images in the theme and a few tweaks, which I can recreate. This site is backup. I hoped that maybe if I was lucky the semi-cleansed theme might help something work. Nope, but that’s my luck today.

    So I’m back where I was, which is:

    1. Trying these little code adjustments.
    2. Trying the recommend plugin.

    Thanks All

    Thread Starter TheOneAndOnly

    (@theoneandonly)

    Update Jaseone:

    Tried those little code cleaneruppers again for a different reason and it definitely made things look a little sharper, and so a belated THANK YOU. Got the site backup and am trying to install AdBlocker.

    Thread Starter TheOneAndOnly

    (@theoneandonly)

    RESOLUTION FOR THOSE KEEPING SCORE:

    The solution to the javascript meets Safari bugs was to abandon the script and replace it with Angsuman’s plugin.

    The plugin was a bit rough for a clueless dude like me to ‘get’, but thanks to the developers kind help all is up and running now for the most part.

    I’m frankly still amazed that a simple bit of javascript wouldn’t work in Safari, but I don’t know code, and maybe java sucks. Or Safari sucks. Or maybe both are cool but when they meet– WOW.

    Thanks to all for the consistent quality help offered in here. When I get a moment, I’ll make a WORDPRESS ad and stick it into my AD ROTATION.

    ??

    Javascript can be a bit of a pain sometimes to write but neither Javascript or Safari sucks, it just that script was a poor one written back in the day when valid HTML didn’t matter so much and the instructions that came with it were incorrect as well.

    I’m glad you got the plugin working though. ??

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Adding Rotating Java Script to my WP blog creates havoc in Safari Browser’ is closed to new replies.