Javacript tips: insert advertising script sides

View: 920    Dowload: 0   Comment: 0   Post by: hanhga  
Author: none   Category: References   Fields: Other

10 point/3 review File has been tested

In the process of working with clients, with one client had asked her to make them banner ads page 2 sides like 24h.com.vn, his initially freaked out and have little fear of not knowing right how because I've never done that, go online to learn there are so many different source code and help her do it

Introduction

In the process of working with clients, with one client had asked her to make them banner ads page 2 sides like 24h.com.vn, his initially freaked out and have little fear of not knowing right how because I've never done that, go online to learn there are so many different source code and help her do it, but they are often messy and confusing, in the end I selected the one code help their satisfaction with its customers and also help further 1 tips, today I would like to share with you the script helped me do that.

 

quang cao 2 ben

First you have to download these files:

Both sides want ad insertion site you need before inserting and file that you want to insert such as index.html file, home.php, abc.aspx ...

First you open the folder to copy the file to your site floater_xlib.js, insert the following code into the head tag in the file that you want to insert advertising.

<!–
     <SCRIPT src=”floater_xlib.js” type=text/javascript></SCRIPT>
–>

Continue to copy this code into the head tag:

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!--
<SCRIPT type=text/javascript>
var slideTime = 700;
var floatAtBottom = false;
function pepsi_floating_init()
{
    xMoveTo('floating_banner_right', 887 - (1024-screen.width), 0);
    winOnResize(); // set initial position
    xAddEventListener(window, 'resize', winOnResize, false);
    xAddEventListener(window, 'scroll', winOnScroll, false);
}
function winOnResize() {
    checkScreenWidth();
    winOnScroll(); // initial slide
}
function winOnScroll() {
  var y = xScrollTop();
  if (floatAtBottom) {
    y += xClientHeight() - xHeight('floating_banner_left');
  }
  xSlideTo('floating_banner_left', (screen.width - (800-775) - 770)/2-115 , y, slideTime);  // Chỉnh khoảng cách bên trái
  xSlideTo('floating_banner_right', (screen.width - (800-795) + 770)/2, y, slideTime); // // Chỉnh khoảng cách bên Phải
}
function checkScreenWidth()
{
    if( document.body.clientWidth < 926 )
    {
        document.getElementById('floating_banner_left').style.display = 'none';
        document.getElementById('floating_banner_right').style.display = 'none';
    }
    else
    {
        document.getElementById('floating_banner_left').style.display = '';
        document.getElementById('floating_banner_right').style.display = '';
    }
}
</SCRIPT>
-->

Here you can edit and annotate distance on file.

Next, copy the following code in the body tag in your file.

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
<!--
<div id="floating_banner_left" style="text-align:right; position:absolute; overflow:hidden; top: 0px; left: 0px; width: 105px; border: 0px solid #000;">
<div id="floating_banner_left_content">
    <a href="http://thuathuatweb.net/" target="_blank"><img src="hinh1.gif" border="0" width="105px" alt="" /></a>
</div>
</div>
<div id="floating_banner_right" style="text-align:left; position:absolute; overflow:hidden; top: 0px; right: 0px; width: 105px; border: 0px solid #000;">
<div id="floating_banner_right_content"  >
    <a href="http://thuthuatweb.net/" target="_blank"><img src="hinh2.gif" border="0" width="105px" alt="" /></a>
</div>
</div>
<script>
    runQuery();
</script>
<script>
    pepsi_floating_init();
</script>
-->

That done, you do have questions, or questions should be sent to their home, wish you success

Javacript tips: insert advertising script sides

Javacript tips: insert advertising script sides Posted on 14-08-2015  In the process of working with clients, with one client had asked her to make them banner ads page 2 sides like 24h.com.vn, his initially freaked out and have little fear of not knowing right how because I've never done that, go online to learn there are so many different source code and help her do it 3.3333333333333/10 920

Comment:

To comment you must be logged in members.

Files with category

  • Instructions for installing and configuring Windows Live Mail on Windows 10 simple

    View: 2931    Download: 0   Comment: 0   Author: none  

    Instructions for installing and configuring Windows Live Mail on Windows 10 simple

    Category: References
    Fields: Other

    0.66666666666667/6 review
    Windows 10 pre-installed Mail application for managing personal email on the device. The latest version of this application but improved a lot and support other email accounts such as Gmail or Yahoo Mail but users almost no "salty" really with this...

  • Step by step instructions to create social networking buttons with CSS3

    View: 2034    Download: 0   Comment: 0   Author: none  

    Step by step instructions to create social networking buttons with CSS3

    Category: References
    Fields: Other

    0.5625/8 review
    CSS3 help web designers have the ability to create buttons (buttons) very nice, today I will share with you two tips decoration for button in your web becomes radiant beauty that no need to use photoshop.

  • You should understand the CSS Box Shadow

    View: 2158    Download: 0   Comment: 0   Author: none  

    You should understand the CSS Box Shadow

    Category: References
    Fields: Other

    1.0357142857143/14 review
    Effects his shadow was introduced in the previous article, however, in this article, I will guide more specific about shadow attributes, you try it with anything. First we try to learn css following paragraph:

  • How to do button movement with beautiful CSS3

    View: 1841    Download: 0   Comment: 0   Author: none  

    How to do button movement with beautiful CSS3

    Category: References
    Fields: Other

    0/6 review
    Previously to create motion effects button, you must draw the button in photoshop, then switched to flash to make it possible to move. But now you need not spend too much time doing it, all because of the emergence of CSS3.

  • Create a dropdown menu with CSS3 effects with beautiful transtions

    View: 2125    Download: 0   Comment: 0   Author: none  

    Create a dropdown menu with CSS3 effects with beautiful transtions

    Category: References
    Fields: Other

    0.375/12 review
    More of the dropdown menu you want to introduce to you, this will have the effect menu transitions (converted background of menu background from pale to dark). This menu works well on browsers like FF, Chrome, Safary, but unfortunately did not work...

  • How to hack css for all browsers you should know

    View: 1751    Download: 0   Comment: 0   Author: none  

    How to hack css for all browsers you should know

    Category: References
    Fields: Other

    1.35/10 review
    In the process of web design, which makes it the most headaches is how to design web pages that you can run on the browser. Especially when clients use the old as IE6 browser such. However, with this article, you will easily edit interface runs well...

  • Create Accordion with extremely beautiful CSS3

    View: 2190    Download: 0   Comment: 0   Author: none  

    Create Accordion with extremely beautiful CSS3

    Category: References
    Fields: Other

    0.64285714285714/7 review
    Accordion is a technique that helps you shortened the content that you want displayed on the website. It is often used for the display of submenus. In addition you can also use it for content, images. Before applying this procedure, you have to use...

  • Create the effect Hovercho images with Webkit and CSS3 is great

    View: 1872    Download: 0   Comment: 0   Author: none  

    Create the effect Hovercho images with Webkit and CSS3 is great

    Category: References
    Fields: Other

    0.75/6 review
    WebKit is one open source application framework provides the necessary components built one for your web browser. Along with CSS3, cả have contributed to very nice effect những previously only using JavaScript or JQuery thực beige.​

 

File suggestion for you

File top downloads

logo codetitle
Codetitle.com - library source code to share, download the file to the community
Copyright © 2015. All rights reserved. codetitle.com Develope by Vinagon .Ltd