[Help Needed]Skyscraper Ad On The Side Of My site?

Discussion in 'HTML & Website Design' started by Francis1717, Mar 13, 2013.

  1. #1
    hi folks, im having hard time putting the skyscraper ad code in my website. googled a lot but did not find any clue, please help

    how do i put the skyscraper on both sides of my site? where shoud i place the code?
    here is the html layout of my site and the ad codes
    thanks in advance, any help would be really appreciated.


    ad codes:

    <iframe border=0 frameborder=0 marginheight=0 marginwidth=0 width=168 height=608 scrolling=no allowtransparency=true rc=ht can't post link></iframe>

    HTML
    [CODE]<!DOCTYPE html><html>
    <head>
        <title><?php echo $site_title; ?></title>
        <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
        <meta name="description" content="<?php echo $site_meta_description; ?>" />
        <meta name="keywords" content="<?php echo $site_meta_keywords; ?>" />
        <meta name="author" content="<?php echo $site_meta_author; ?>" />
        <link rel="stylesheet" type="text/css" href="css/styles.css" />
        <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.8.18.custom.min.js"></script>
        <link type="text/css" href="css/smoothness/jquery-ui-1.8.18.custom.css" rel="stylesheet" />
        <!-- POPUP BOX CLICK IMAGE START -->
        <script type="text/javascript">
            <!--
            function popitup(url) {
                newwindow=window.open(url,'name','height=800,width=1024');
                if (window.focus) {newwindow.focus()}
                return false;
            }
     
     
            // -->
     
     
        </script>
     
     
        <script>
            $(function() {
                $( ".downloadimg button" ).button({
                    icons: {
                        primary: "ui-icon-image"
                    }
                })
            });
        </script>
     
     
        <!-- POPUP BOX CLICK IMAGE END -->
    </head>
    <body>
     
     
    <?php include("inc/menu.php"); ?>
     
     
    <div id="container">
        <div id="logo">
            <a href="index.php"><img alt="logo" src="<?php echo $logo_location; ?>" /></a>
        </div>
     
     
        <div class="top_ads">
            <?php
     
     
     
     
     
     
        if($configs->isPremium($rowImage['id_user'])) {
            echo stripslashes($configsarr['premium_ads_top']);
        } else {
            switch($rowImage['adult']) {
                case 0:
                    echo stripslashes($configsarr['clean_top_ads']);
                    break;
                case 1:
                    echo stripslashes($configsarr['adult_top_ads']);
                    break;
            }
            }
            ?>
        </div>
     
     
    <?php if(CONTINUE_TO_IMAGE == 1 && !isset($_POST['imgContinue'])) {
     
     
        echo "
        <div id='continuetoimage'>
            <form action='' method='POST'>
                <p>
                    <input class='button white bigwidth' type='submit' name='imgContinue' value='Continue to image ... ' />
                </p>
            </form>
        </div>
        ";
     
     
    } else { ?>
        <div id="image_details">
            <?php
            list($width, $height) = getimagesize($dirImg);
            echo "<p><strong>Date added:</strong> {$rowImage['date_added']}</p>";
            echo "<p><strong>Views:</strong> {$viewsupdate} </p>";
            echo "<p><strong>Width:</strong> {$width}px</p>";
            echo "<p><strong>Height:</strong> {$height}px</p>";
                if($width > 1000) {
                    echo "<br /><br /><p><i>This image was resized. Click to view full size</i></p>";
                }
            ?>
        </div>
     
     
    <?php
     
     
    if($width > 1000) {
    //echo "<p>This image was resized. Click to view full size</p>";
    echo "<a href='{$dirImg}' onclick=\"return popitup('{$dirImg}')\"><img class='centred_resized' src='{$dirImg}' alt='image' /></a>";
    } else {
    echo "<img class='centred' src='{$dirImg}' alt='image' />";
    }
    ?>
    <div class="downloadimg">
        <button onclick="return popitup('dlimg.php?id=<?php echo $id; ?>')">Download Image</button>
    </div>
        <?php
        $q = "SELECT download_links FROM images_opt WHERE id_img = '$rowImage[id]'";
        $result = mysql_query($q);
        if(mysql_num_rows($result) > 0) {
            $rowImgOpt = mysql_fetch_assoc($result);
        echo "
     
     
        <textarea id='download_links'>{$rowImgOpt['download_links']}</textarea>
     
     
        ";
        }
     
     
        ?>
        <script type="text/javascript">
            $(function() {
                $( "#accordion" ).accordion();
            });
        </script>
     
     
     
     
        <div style="width:600px; margin:auto; margin-top:50px; margin-bottom:20px;">
     
     
            <div id="accordion">
                <h3><a href="#">Codes</a></h3>
                <div>
                    <div id="imagecodes">
                        <label>BB Code:</label><br />
                        <input type='text' onclick="this.select();" value="<?php echo "; ?>">
                        <br /> <br />
                        <label>HTML:</label><br />
                        <input type='text' onclick="this.select();" value="<?php echo "<a href='{$real_site_*****/img-{$id}.html'><img src='{$dirThumb}' alt='image' /></a>"; ?>">
                        <br /> <br />
                        <label>Link:</label><br />
                        <input type='text' onclick="this.select();" value="<?php echo "{$real_site_*****/img-{$id}.html"; ?>">
                        <?php
                        if(DIRECT_LINK_SHOW == 1) {
                            echo "
                            <br /> <br />
                            <label>Direct Link to image:</label><br />
                            <input type='text' onclick='this.select();' value='{$dirImg}'>
                            ";
                        }
                        ?>
                    </div>
                </div>
     
     
                <?php
                if($rowImage['gallery'] > 0) {
                echo "
                <h3><a href='#'>More from this gallery</a></h3>
                <div>
                ";
                    $galleries->moreFromThisGallery($rowImage['gallery']);
     
     
                echo "</div>";
                }
                ?>
     
     
                <h3><a href="#">Share</a></h3>
                <div>
                  <?php echo stripslashes($configsarr['share_plugins']); ?>
                </div>
            </div>
        </div>
     
     
    <?php
    } // END ELSE CONTINUE TO IMAGE
    ?>
     
     
    <div class="bottom_ads">
    <?php
        if($configs->isPremium($rowImage['id_user'])) {
            echo stripslashes($configsarr['premium_ads_bottom']);
        } else {
        switch($rowImage['adult']) {
            case 0:
                echo stripslashes($configsarr['clean_bottom_ads']);
                break;
            case 1:
                echo stripslashes($configsarr['adult_bottom_ads']);
                break;
        }
        }
     
     
    ?>
    </div>
     
     
     
     
    </div>
     
     
    <?php
    include('inc/footer.php');
    echo stripslashes($configsarr['analytics']);
     
     
    switch($rowImage['adult']) {
        case 0:
            echo stripslashes($configsarr['popup_clean']);
            break;
        case 1:
            echo stripslashes($configsarr['popup_adult']);
            break;
    }
    ?>
     
     
     
     
    </body>
    </html>[/CODE]
    HTML:
     
    Francis1717, Mar 13, 2013 IP
  2. Andrea from CasinoRealis

    Andrea from CasinoRealis Greenhorn

    Messages:
    69
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    15
    #2
    I'll go for two different div.
    Have you tried this?
    <div align="left"><iframe src="whatsoever.html" name="whatsoever" scrolling="no" frameborder="0" width="" height="" marginwidth="1" marginheight="0" align="middle" title="whatsoever"></iframe></div>
    <div align="right"><iframe src="whatsoever.html" name="whatsoever" scrolling="no" frameborder="0" width="" height="" marginwidth="1" marginheight="0" align="middle" title="whatsoever"></iframe></div>
    HTML:
    Of course fill the properties as required.

    Let me know if that did the trick.

    Cheers
     
  3. creativewebmaster

    creativewebmaster Active Member

    Messages:
    654
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    78
    #3
    You needs to be created 2 extra div called, left and right. put one ad on left div and another on right hand side of the content area.
     
    creativewebmaster, Mar 14, 2013 IP
  4. Andrea from CasinoRealis

    Andrea from CasinoRealis Greenhorn

    Messages:
    69
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    15
    #4
    Hey... did it help?
    Please let me know if it worked for you. I uploaded a test site to check and worked just fine for me.