Ad Gallery - Floating Ad or Layer Ad
Floating ad, or layer ad, is a special type of ad that flows/slides into the main page using animation. You can set a delay before the ad begins sliding into the page. You can also set the ad position on the main page. The user can click on a Close button to make it disappear. You can group multiple floating ads into a zone and get the zone's serving code to rotate floating ads. To avoid display the default error banner when there is no available floating ad in the zone, check the box to hide all errors when
generating the serving code.
Create a floating ad
- Click on the menu Ads/Create a new ad and choose the ad type to be RichMedia/HTML
- Paste the ad code from the demo page below into the box
- Make sure you replace the ad content to your own ad. It could be a text link, a form, a Flash banner, or a standard image
- Use the JavaScript serving code (not iframe) since the code needs to move the ads on the main page
Flash/SWF Ad
If the floating ad is a Flash ad then the ActionScript code for the Close button should call the external JavaScript function to close the ad. The function should be defined in the HTML ad code. It should look similar to this:
on(release) {
getURL("javascript:closeFloatingAd();");
}
Additionally, a proper
clickTAG should be appended to the SWF file for click tracking.
Example
Please view the
demo for the source code of a sample sliding/floating ad. To customize the sample ad to your own ad:
- Change the content of the ad container
- If it's a Flash/SWF ad, apply the close button code
- Modify the positioning and animation variables: AdSpeed_TopMargin, AdSpeed_LeftMargin, and AdSpeed_SlideTime
Floating Ad with Vertical Scrolling
Another visual effect of a floating ad is to follow the scroll bar. When you scroll down, the ad moves down. When you scroll ups, the ad moves up. Thus, it's always visible to the visitor. Typically, it's the sidebar ad (120x600, 160x600) on long pages. To create this ad, please use AdSpeed Rich-Media wizard interface built into your account.
Other Articles in Banner, Richmedia, and Text Ads
Media formats, ad sizes, type Richmedia, Normal/External, textlink
Cannot find an answer for your question? Ask our Customer Care team
Related Articles
Testimonials for our Ad Servers
I am extremely pleased with AdSpeed. Their technology has made our business shine with improved profits, mostly due to their unique ad server and amazing support. There is no other company I would even consider to compare to AdSpeed.
Markus S.
CEO, Dream Ware Enterprise
That was fast and works exactly right! Thanks again for your superb support!
Dr Tom Bailey
Aquarium Fish