1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Html-code for putting add "over" website

Discussion in 'HTML & JavaScript' started by iliketurtles, Mar 9, 2009.

  1. iliketurtles

    iliketurtles Regular Member

    Joined:
    Dec 10, 2008
    Messages:
    283
    Likes Received:
    10
    Home Page:
    I`ve seen this done at a couple of sites; when writing the url, pushing enter, you dont get to the actual site. When entering the site, an add is shown.
    How can I put one of those at my site? Is it possible to do it with blogger.com?
    It looks like this.
     

    Attached Files:

  2. Poison

    Poison Junior Member

    Joined:
    Feb 28, 2009
    Messages:
    103
    Likes Received:
    35
    Occupation:
    Ironically SEO and PPC manager
    Home Page:
    I don't know the code myself but a lot of advertisers will give you the code to do this.
    I know bidver can let you do this.
     
  3. iliketurtles

    iliketurtles Regular Member

    Joined:
    Dec 10, 2008
    Messages:
    283
    Likes Received:
    10
    Home Page:
    The advertiser didnt have the code. Anyone else?
     
  4. seorebel

    seorebel Junior Member

    Joined:
    Aug 15, 2008
    Messages:
    175
    Likes Received:
    922
    Maybe you can tweak this one: hxxp://www.nofunc.com/Sexy_Box/
     
  5. seorebel

    seorebel Junior Member

    Joined:
    Aug 15, 2008
    Messages:
    175
    Likes Received:
    922
    I just saw it on hxxp://tools.seobook.com/ - strip it from there..
     
  6. iliketurtles

    iliketurtles Regular Member

    Joined:
    Dec 10, 2008
    Messages:
    283
    Likes Received:
    10
    Home Page:
    Thank you, I`ll try that. :)
     
  7. iliketurtles

    iliketurtles Regular Member

    Joined:
    Dec 10, 2008
    Messages:
    283
    Likes Received:
    10
    Home Page:
    Feel like a moron asking this.. but what part of the code do I need? I`m not THAT into html..:rolleyes:
     
  8. 00CivicEX

    00CivicEX Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 3, 2009
    Messages:
    293
    Likes Received:
    214
    You can use this:

    Code:
    <SCRIPT language='JavaScript' type=text/javascript>
    <!--
    document.write("<table width='270' height='150' border='0' cellspacing='0' cellpadding='1' style='display:none;position:absolute;top:10px;left:10px;empty-cells:hide' id='v1771236804892551v181'>");document.write("<tr><td style='background: #062F91'>");document.write("<table width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>");document.write("<tr height='1'><td>");document.write("<table width='100%' border='0' cellspacing='1' cellpadding='0' style='background: #003333; color: #FFFFFF; cursor: default'><tr style='font-family: Arial, sans-serif; font-size: 10pt; font-weight: bold'><td>Advertisement");document.write("<td style='width: 20px; cursor: pointer;' onclick='javascript:v1771236804892551v183();'>-");document.write("<td style='width: 20px; cursor: pointer;' onclick='javascript:v1771236804892551v184();'>X");document.write("</table>");document.write("<tr><td>");document.write("<table width='100%' height='100%' id='v1771236804892551v185' border='0' cellpadding='0' cellspacing='0' bgcolor='#E0E0F0'>");document.write("<tr>");document.write("<td>");document.write("YOUR AD GOES HERE");document.write("</table></table></table>"); if ( document.getElementById ) v1771236804892551v186 = document.getElementById ( "v1771236804892551v181" ); else v1771236804892551v186 = document.all ["v1771236804892551v181"]; var v1771236804892551v187 = undefined; var v1771236804892551v188 = false; function v1771236804892551v183 ( ) {   if ( document.getElementById )     v189 = document.getElementById ( "v1771236804892551v185" );   else     v189 = document.all ["v1771236804892551v185"];   if ( v189.style.display == "none" )     {       v189.style.display = "";       v1771236804892551v186.style.height = "150px";     }   else     {       v189.style.display = "none";       v1771236804892551v186.style.height = "20px";     } } function v1771236804892551v184 ( ) {   v1771236804892551v186.style.display = "none";   v1771236804892551v188 = true; } var v1771236804892551v175, v1771236804892551v176; var v1771236804892551v190, v1771236804892551v191; function v1771236804892551v192 ( ) {   return ( ( window.pageXOffset ) ? window.pageXOffset : document.body.scrollLeft ) + v1771236804892551v190; } function v1771236804892551v193 ( ) {   return ( ( window.pageYOffset ) ? window.pageYOffset : document.body.scrollTop ) + v1771236804892551v191; } function v1771236804892551v194 ( ) {   var v195 = 500;   v1771236804892551v186.style.top = v1771236804892551v193 ( );   v1771236804892551v186.style.left = v1771236804892551v192 ( );     setTimeout ( "v1771236804892551v194 ( );", v195 ); } function v1771236804892551v197 ( v198 ) {   if ( v1771236804892551v190 != v1771236804892551v175 || v1771236804892551v191 != v1771236804892551v176 )     {       if ( v1771236804892551v190 != v1771236804892551v175 )         if ( Math.abs ( v1771236804892551v190 - v1771236804892551v175 ) <= v1771236804892551v199 )           v1771236804892551v190 = v1771236804892551v175;         else           if ( v1771236804892551v190 < v1771236804892551v175 )             v1771236804892551v190 += v1771236804892551v199;           else             v1771236804892551v190 -= v1771236804892551v199;       if ( v1771236804892551v191 != v1771236804892551v176 )         if ( Math.abs ( v1771236804892551v191 - v1771236804892551v176 ) <= v1771236804892551v199 )           v1771236804892551v191 = v1771236804892551v176;         else           if ( v1771236804892551v191 < v1771236804892551v176 )             v1771236804892551v191 += v1771236804892551v199;           else             v1771236804892551v191 -= v1771236804892551v199;       v1771236804892551v186.style.top  = v1771236804892551v193 ( );       v1771236804892551v186.style.left = v1771236804892551v192 ( );       setTimeout ( "v1771236804892551v197 ( " + v198 + " );", 20 );     }   else     if ( v198 )       v1771236804892551v194 ( );     else       v1771236804892551v186.style.display = "none"; } function v1771236804892551v200 ( v201, v202 ) {   v1771236804892551v175 = v201;   v1771236804892551v176 = v202;   v1771236804892551v190 = v201;   v1771236804892551v191 = v202;    var v205 = 0, v206 = 0;    v206 = ( ( window.innerHeight ) ? window.innerHeight : document.body.clientHeight ) - v202;    if ( v205 != 0 && v206 != 0 )      if ( Math.abs ( v205 ) < Math.abs ( v206 ) )        v206 = v206 / Math.abs ( v206 ) * Math.abs ( v205 );      else        v205 = v205 / Math.abs ( v205 ) * Math.abs ( v206 );   v1771236804892551v190 += v205;   v1771236804892551v191 += v206;   v1771236804892551v186.style.top  = v1771236804892551v193 ( );   v1771236804892551v186.style.left = v1771236804892551v192 ( );   v1771236804892551v186.style.display = "";   v1771236804892551v197 ( true ); } function v1771236804892551v196 ( ) {   if ( v1771236804892551v188 )     return;   v1771236804892551v199 = undefined;    var v205 = 0, v206 = 0;    var v201 = v1771236804892551v175, v202 = v1771236804892551v176;    v206 = ( ( window.innerHeight ) ? window.innerHeight : document.body.clientHeight ) - v202;    if ( v205 != 0 && v206 != 0 )      if ( Math.abs ( v205 ) < Math.abs ( v206 ) )        v206 = v206 / Math.abs ( v206 ) * Math.abs ( v205 );      else        v205 = v205 / Math.abs ( v205 ) * Math.abs ( v206 );   v1771236804892551v175 += v205;   v1771236804892551v176 += v206;   v1771236804892551v186.style.top  = v1771236804892551v193 ( );   v1771236804892551v186.style.left = v1771236804892551v192 ( );   v1771236804892551v186.style.display = "";   v1771236804892551v197 ( false ); } var v1771236804892551v199 = 24; setTimeout ( "v1771236804892551v200 ( 220, 100, 24 );", 1500 ); var v1771236804892551v217, v1771236804892551v218; function v1771236804892551v219 ( v220 ) {   v221 = ( document.all ) ? event.clientX : v220.clientX;   v222 = ( document.all ) ? event.clientY : v220.clientY;   v1771236804892551v190 += v221 - v1771236804892551v217;   v1771236804892551v191 += v222 - v1771236804892551v218;   v1771236804892551v217 = v221;   v1771236804892551v218 = v222;   v1771236804892551v186.style.top  = v1771236804892551v193 ( );   v1771236804892551v186.style.left = v1771236804892551v192 ( ); } function v1771236804892551v223 ( ) { } function v1771236804892551v224 ( ) {   document.onmousemove = v1771236804892551v223;   document.onmouseup   = v1771236804892551v223; } function v1771236804892551v225 ( v220 ) {   v1771236804892551v217 = ( document.all ) ? event.clientX : v220.clientX;   v1771236804892551v218 = ( document.all ) ? event.clientY : v220.clientY;   document.onmousemove = v1771236804892551v219;   document.onmouseup   = v1771236804892551v224; } v1771236804892551v186.onmousedown = v1771236804892551v225;
    //-->
    </SCRIPT>
    
    Replace YOUR AD HERE...With your ad
     
  9. iliketurtles

    iliketurtles Regular Member

    Joined:
    Dec 10, 2008
    Messages:
    283
    Likes Received:
    10
    Home Page:
    Thank you! I`ll try that. :)
     
  10. iliketurtles

    iliketurtles Regular Member

    Joined:
    Dec 10, 2008
    Messages:
    283
    Likes Received:
    10
    Home Page:
    Where do I put the code, btw? I put it between the body tags, but I get this message:

    "Open quote is expected for attribute "{1}" associated with an element type "type"."

    I have no idea what that means.
     
  11. iliketurtles

    iliketurtles Regular Member

    Joined:
    Dec 10, 2008
    Messages:
    283
    Likes Received:
    10
    Home Page:
    Still needs help with this..
    :)