Submit Your Article Forum Rules

Results 1 to 10 of 10

Thread: Copying Banner Ads

  1. #1
    Junior Member bruceldr's Avatar
    Join Date
    Jun 2004
    Location
    Arizona
    Posts
    29

    Copying Banner Ads

    I want to put a page on my website where people can click in the box and it'll highlight the code for a banner ad. I've got the box, I've got the code, BUT I can't get the RIGHT code IN the box.

    This is my page:

    Test page

    but I can't get it to work. In fact, I'm not even sure WHERE the code that is in that box is coming from.

    The code that I want there is:

    <a href="http://www.eatstayplay.com" target="new"><IMG border="0" hspace="5" src="http://www.eatstayplay.com/images/misc/esp120x60motion.gif" vspace="5"/></a>


    But what I've got in the box isn't even close!

    The whole click-and-highlight part of the box DOES work but not the code in the box itself.




    The code that I'm using to create the box, with what I want inside is:

    <textarea id="code" cols="65" rows="10" readonly onclick="this.focus(); this.select();">

    <a href="http://www.eatstayplay.com" target="new"><IMG border="0" hspace="5" src="http://www.eatstayplay.com/images/misc/esp120x60motion.gif"

    vspace="5"/></a>
    </textarea>

    But, that isn't what's appearing in the box. Can somebody PLEASE take a look at this for me? You'll probably have to look at the source code of the test page and see what's what.

    Thanks! Thanks! Thanks!
    Head cook and chief bottle washer at http://www.EatStayPlay.com
    Mad blogger at http://www.TheOutdoorPrincess.com

  2. #2
    WebProWorld MVP morestar's Avatar
    Join Date
    Jun 2007
    Location
    Toronto, Ontario (Burlington)
    Posts
    4,250

    Re: Copying Banner Ads

    edit: it works for me but i didn't finish reading your post
    Join a free dating site and meet single people in your area.
    Submit your content at my content publishing site and promote your business, services or opinions.

  3. #3
    WebProWorld MVP morestar's Avatar
    Join Date
    Jun 2007
    Location
    Toronto, Ontario (Burlington)
    Posts
    4,250

    Re: Copying Banner Ads

    maybe copy the code from this page: The JavaScript Source: Text Effects: 1 Cool TextBox Scroller

    it has the functionality you're looking for...

    Code:
     onClick="javascript:this.form.txt.focus();this.form.txt.select();"
    Join a free dating site and meet single people in your area.
    Submit your content at my content publishing site and promote your business, services or opinions.

  4. #4
    Senior Member
    Join Date
    Sep 2006
    Posts
    365

    Re: Copying Banner Ads

    It works fine for me too.

    Maybe it is a browser issue. I'm using MSIE 6 at the moment. What are you using that you see something different?

    I recommend you use different browsers and different resolutions to look at your website because things are just all over the place overlapping etc.

    Remember, IE doesn't render the same as Mozilla based browsers.

  5. #5
    Junior Member mnboater's Avatar
    Join Date
    Dec 2008
    Posts
    8

    Re: Copying Banner Ads

    One thing that sticks out is that the code is not valid XHTML. Being a stickler for that, I would change that first.

    Chris

  6. #6
    WebProWorld MVP morestar's Avatar
    Join Date
    Jun 2007
    Location
    Toronto, Ontario (Burlington)
    Posts
    4,250

    Re: Copying Banner Ads

    Quote Originally Posted by mnboater View Post
    One thing that sticks out is that the code is not valid XHTML. Being a stickler for that, I would change that first.

    Chris
    why should the html be "valid" ?
    Join a free dating site and meet single people in your area.
    Submit your content at my content publishing site and promote your business, services or opinions.

  7. #7
    WebProWorld MVP wige's Avatar
    Join Date
    Jun 2006
    Posts
    3,138

    Re: Copying Banner Ads

    Quote Originally Posted by morestar View Post
    why should the html be "valid" ?
    Invalid code would be more prone to errors.

    That being said, it works for me as well. What are you seeing in the box when you view the page, and what browser/version are you using?
    The best way to learn anything, is to question everything.
    WigeDev - Freelance web and software development

  8. #8
    Junior Member bruceldr's Avatar
    Join Date
    Jun 2004
    Location
    Arizona
    Posts
    29

    Re: Copying Banner Ads

    Thanks for all your help! And, I see what you're saying, I left it alone for a couple of days, and NOW I am seeing the correct code in the box. Even though I had cleared cache and refreshed and EVERYTHING, Firefox just wasn't displaying what it should have been.

    Now, what do you mean about valid code? What about this is invalid or needs to be changed?

    If I DON'T change it, what might happen?

    Thanks again this was a big help.
    Head cook and chief bottle washer at http://www.EatStayPlay.com
    Mad blogger at http://www.TheOutdoorPrincess.com

  9. #9
    Junior Member mnboater's Avatar
    Join Date
    Dec 2008
    Posts
    8

    Re: Copying Banner Ads

    Nothing will break with invalid code. If it's important that the site validates as valid XHTML, fix it. As far as what's wrong, IMG should not be capitalized. The border=0 is deprecated, as was hspace and vspace. If you're not familiar with XHTML, just leave it. It works.

    Chris

  10. #10
    Junior Member
    Join Date
    Mar 2009
    Posts
    9

    Re: Copying Banner Ads

    someone beat me to the punch, I'm about to answer it but I guess all was settled down here..

Similar Threads

  1. Copying free articles?
    By Danielist18 in forum Search Engine Optimization Forum
    Replies: 49
    Last Post: 11-18-2009, 06:14 AM
  2. Copying/Republishing Poll
    By Doc in forum Search Engine Optimization Forum
    Replies: 62
    Last Post: 11-11-2009, 09:06 PM
  3. Copying content
    By somjai in forum Search Engine Optimization Forum
    Replies: 19
    Last Post: 10-01-2009, 10:06 PM
  4. MySQL Copying
    By ackerley1 in forum Web Programming Discussion Forum
    Replies: 3
    Last Post: 09-21-2007, 12:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •