Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder
    Join Date
    Aug 2010
    Thanked 0 Times in 0 Posts

    Help replacing content and creating a new page with a theme from another page

    Hey guys!

    I recently signed up for an ad server called Adzerk. I'd like to customize the pages some, but they won't give me the css/html for the overall theme of the pages. They insist I use css/js to hide/insert my own content. The thing is, I'm only familiar with css/html, and have never worked with js before. I've been trying to read up on it, but I seem to be progressing very slowly..

    The site gives a small example, and I was hoping that would be the only js that I have to use.

    Since I'm not familiar with the language, I was hoping you guys could give me some steps so I know I'm headed in the right direction with this.

    So basically, there is a page that Adzerk has. It has a simple header with some nav links, then a body thats a different color. Very simple. I want to copy that theme, and use it to make some extra pages in which I would just put new content in (like a paragraph).

    The example they gave was this:
    #networkname h1 a img, #networkname h1 a, #networkname h1 a:hover { opacity:0; display:none;}
    $(document).ready(function() {
    $('#networkname h1').append('<img id="logo" src="http://mywebsite.com/websitelogo.png"/>');
    That example shows how to replace their logo with my logo.
    I want to replace the body paragraph, and I want to do it on a new page that doesn't exist yet.
    I would imagine I would use the same code, but just replace #networkname h1 with #bodydiv p and replace the append img tag with append p

    Is that correct?
    Now... how would I do this for a completely new page?
    If the page doesn't exist yet... then it doesn't have their theme to 'replace' these things with... Is there a way to call the theme/content from another page with js?

    Thanks for the help guys, any advice is appreciated!
    Last edited by njfail; 01-19-2013 at 01:11 AM.


Posting Permissions

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