TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,993
  • Total Topics: 21,324
  • Online today: 285
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 269
  • Total: 269

Floating Blocks!!!!

Started by akulion, September 23, 2006, 04:17:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

daftdate

pop ups alerts telling you that you have a pm I havent seen that im smf not the actual pm just a popup alert.

rctxtreme

openPopUps also bypasseses pop-up blockers, so here's an alternative! :D

akulion

plus it makes a very handy Navigation menu bar

have a look: http://path-to-peace.net/forum

xDeathList5x

Hi, would it be possible
- to create a block with an google ad or ebay ad in it
- to make it unmovable
- to make it closable only after the user clicked the ad

???

akulion

- to create a block with a google ad or ebay ad in it:

simply put the code for it between the DIV tags, the complete code would be:



include './gobo.php';
echo"
<div id='dwindow' class='drsElement'
style='left: 160px; top: 250px; width: 730px; height: 90px;
background: #6b92b2; text-align: center'>
<div class='drsMoveHandle'><table><tr><td>RECENT TOPICS</td><td><img src='closedr.gif' onClick='closeit2()'></td></tr></table></div>";

CODE FOR GOOGLE AD GOES HERE

echo"</div>";



- To make it unmovable:

In the code you have a class called drsElement change it to class='drsElement1' and the code will fix the advert. Just make sure this is a center block when fixing it - because if its in a side block then the ad will go off the screen (since it will fix it to the side block)

- to make it closable only after the user clicked the ad

yes thats possible too - in the code above you will have to remove the onClick='closeit2()' function and add that function to the advert. That way when the person clicks the advert, it should close the window as well as count a click on the advert

I dont use google adsense myself but I have come across the code and if I remember it gives a link with ur ID or something in it
so the link would become like <a href='your reffer link here' onClick='closeit2()'>

Just make sure of one thing: REPLACE ALL " with '
this is important because the echo code for PHP is using " and if it appears inside the code it will read it as a closing statement.

If you need help just lemme know and ill try the different stuff out for u ;)

xDeathList5x

mmmh, I use ebay ads, but the code is Iframe or java script

can i use that code too?

the code is like
Quote<script type="text/javascript">document.write('<scr'+'ipt src="http://banners.webmasterplan.com/view.asp?site=xxxx&ref=xxxxxx&type=text&tnb=32&showJS=1&template=1311&textcolor=CCCCCC&titlecolor=CCCCCC&bordercolor=000000&bgcolor=333333&refurl='+escape(document.location.href)+'"></scr'+'ipt>'); </script>

where do i have to put the onClick='closeit2()'  ?

thanks

akulion

javascript may or may not work with the "closeit" function but worth a try:


include './gobo.php';
echo"
<div id='dwindow' class='drsElement'
style='left: 160px; top: 250px; width: 730px; height: 90px;
background: #6b92b2; text-align: center'>
<div class='drsMoveHandle'><table><tr><td>RECENT TOPICS</td><td><img src='closedr.gif' onClick='closeit2()'></td></tr></table></div>


<script type='text/javascript'>document.write('<scr'+'ipt src='http://banners.webmasterplan.com/view.asp?site=xxxx&ref=xxxxxx&type=text&tnb=32&showJS=1&template=1311&textcolor=CCCCCC&titlecolor=CCCCCC&bordercolor=000000&bgcolor=333333&refurl='+escape(document.location.href)+'' onClick='closeit2()'></scr'+'ipt>'); </script>

</div>";



Try that if it works - if it dosent remove the onclick stuff
Javascript should work just fine as long as the variables used in the 2 scripts dont start to clash

xDeathList5x

mmmh, I created a new php center block with -no title-

but after I paste the code and activate the block, I only see a blue empty block with the title Recent topics.
Nothing in it, and the block is resizable, and movable

akulion

what exactly is your javascript code?

because this:



<script type="text/javascript">document.write('<scr'+'ipt src="http://banners.webmasterplan.com/view.asp?site=xxxx&ref=xxxxxx&type=text&tnb=32&showJS=1&template=1311&textcolor=CCCCCC&titlecolor=CCCCCC&bordercolor=000000&bgcolor=333333&refurl='+escape(document.location.href)+'"></scr'+'ipt>'); </script>



is producing no results even on its own: http://goofy-goobers.com (look at the xDeathList5x JS Block on the main page

xDeathList5x

thats because i deleted my affiliate account parameters

use this one:

Quote
<!-- BEGIN PARTNER PROGRAM - DO NOT CHANGE THE PARAMETERS OF THE HYPERLINK -->
<script type="text/javascript">document.write('<scr'+'ipt src="http://banners.webmasterplan.com/view.asp?site=1382&ref=298638&type=text&tnb=32&showJS=1&template=1311&textcolor=666666&titlecolor=660000&bordercolor=000000&bgcolor=000000&refurl='+escape(document.location.href)+'"></scr'+'ipt>'); </script>
<!-- END PARTNER PROGRAM -->

This website is proudly hosted on Crocweb Cloud Website Hosting.