Author Topic: Preloader as advertisement between thumbnail and flash file  (Read 20579 times)

0 Members and 1 Guest are viewing this topic.

Offline zaisk

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Preloader as advertisement between thumbnail and flash file
« on: November 19, 2005, 04:33:21 PM »
Hello,

What I have to change that between thumbnail and flash file will apear html page with advertisement for 5-7 seconds ???

Please help me with that.

Thank you.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Preloader as advertisement between thumbnail and flash file
« Reply #1 on: November 19, 2005, 06:19:51 PM »
hi zaisk

another solution ... here we go ... :

open /templates/<your_template>/header.html and find at the end * :
Code: [Select]
<table width="...%" border="0" cellspacing="0" cellpadding="0" align="center">

Add above :
Code: [Select]
<script type="text/javascript">
var wait = setTimeout('load()',10000);
function load()
{
document.getElementById("content").style.visibility="visible";
}
</script>
<div id="advertisement" style="position:absolute; z-index: 1; visibility: visible">
<br>
Here your Advertisement ... !
(tables, images, ... are possible)
<br>
</div>
<div id="content" style="position:absolute; z-index: 999; visibility: hidden">

open /templates/<your_template>/footer.html and find at the end :
Code: [Select]
</body>
</html>

Add above :
Code: [Select]
</div>

... var wait = setTimeout('load()',10000); ... Here test your time for your Advertisement !
... * ... or on the top of details.html ... .

... thats all ... I hope this is now good for you ... :wink:

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline zaisk

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Preloader as advertisement between thumbnail and flash file
« Reply #2 on: November 19, 2005, 07:17:44 PM »
Thanks for that, but in this way advertisement appears after every click, I wanted that it appear just before flash games, because your given way (I think) is not likely buy visitors:)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Preloader as advertisement between thumbnail and flash file
« Reply #3 on: November 19, 2005, 07:30:32 PM »
Try use the same method in templates/<your template>/media/swf.html template
I belive the JS code does not have to be in the <head>
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline zaisk

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Preloader as advertisement between thumbnail and flash file
« Reply #4 on: November 19, 2005, 07:55:15 PM »
I tried to use it in swf.html file, but didnt't work for me. The advertisement appeared in something like in new window(on the same window, but on top), and after some time (the loading wasn't finished counting), also on the top opens the flash fle. So Something is not working.

I will be very very happy if someone could write the same script (working) for the swf.html file. Thank again.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Preloader as advertisement between thumbnail and flash file
« Reply #5 on: November 19, 2005, 11:31:04 PM »
...  is not likely buy visitors:) ...
is any advertisement likely by visitors ... :roll: ... ?

- take only the "java script" in every media.html-file and the <div>...</div>-code leave there in details.html
- and where you need the advertisement set the right time for "load"
- and where you need no advertisement set "0" for "load"

and now it's your turn (e.g. also for other solutions)
mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline zaisk

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Preloader as advertisement between thumbnail and flash file
« Reply #6 on: November 20, 2005, 10:08:18 AM »
:) There I just wanted to say that visiotrs do not like such am advertisement )sorry for bad english)

Thank for helping but I have the same problem again, game and advertisement appears not in page, but on the top of the page.

Have any ideas? Please explain everything step by step....


Thank you

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Preloader as advertisement between thumbnail and flash file
« Reply #7 on: November 21, 2005, 12:50:52 PM »
I tested my last solution * on my site ... and it works in the best way as a preloader.
that means ...
- klick on a flash-thumbnail on a category-page
- now it shows 10sek. a blank page with a advertisement (or whatever you wanted) as preloader
- after 10sek. it shows the 4images-flash-site

I think that is what you you searched and wanted ...  8)

PS. : another solution is a frameless container with your advertisement ... over the 4images-flash-site ... with must klicked for closing or for following the advertisement-link

PPS. : but test again my last solution ... correctly ... with the div-container ( but it works on http://www.zaisk.com ... a 4images-Free-Copyright-Version ... ? )

last solution *
- take only the "java script" in every media.html-file (swf.html, jpg.html, ... )
- the <div>...</div><div>...-code leave there in details.html (on the top ...!)
- and the </div> leave there in details.html (at the bottom ...!)
- and where (media.html-file ...swf.html,...) you need the advertisement set the right time for "load"
- and where (media.html-file ...jpg.html,...) you need no advertisement set "0" for "load"

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Preloader as advertisement between thumbnail and flash file
« Reply #8 on: November 21, 2005, 02:40:57 PM »
May I add: also this method is reather anoying for visitors ;)
IMO the advertisement should not be showed on every page request, perhaps every NN clicks (probably cookies or 4images sessions would required for this)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Preloader as advertisement between thumbnail and flash file
« Reply #9 on: November 21, 2005, 03:03:06 PM »
... the advertisement should not be showed on every page request ...

... but on every flash-page ... and that realized my last solution ...  :wink:

PS. I updated my last solution in the post above
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline zaisk

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Preloader as advertisement between thumbnail and flash file
« Reply #10 on: November 21, 2005, 10:14:21 PM »
It is amazing... Thank you for all the help you did. Big thank you for you guys and one more question:)  :

I inserted all the code you said and working fine for me, but better would be that the "loading" do not open in new widow, but the loading would be in the same place before flash place. Do you understand?:)


It would be great to see that advertisement preloader, in witch visitors coudn't continue if they do not press the adss :) That will be the greatest one, but hte adss do not have to apen in new window too.


Once more thank for you.
This is the best supporting I have every seen!!!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Preloader as advertisement between thumbnail and flash file
« Reply #11 on: November 22, 2005, 02:34:23 AM »
but better would be that the "loading" do not open in new widow, but the loading would be in the same place before flash place.
If you do the same modifications that mawenzi posted above but instead of changing anything in details.html do it in media templates such as swf.html woud work as u wanted ;)

It would be great to see that advertisement preloader, in witch visitors coudn't continue if they do not press the adss :)
If I'm not misstaken many "pay-per-click" companies may close your account with them if you force your visitors to click on their ads...(because that way visitors will not be interested in what the ad company selling and will close the window or something like that)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Preloader as advertisement between thumbnail and flash file
« Reply #12 on: November 22, 2005, 10:33:03 AM »
... but better would be that the "loading" do not open in new widow, but the loading would be in the same place before flash place ...

than take this /templates/<yor_template>/media/smf.html :
Code: [Select]
<!-- Template file for Flash Movies -->
<script type="text/javascript">
var wait = setTimeout('load()',10000);
function load()
{
document.getElementById("content").style.visibility="visible";
}
</script>
<table cellpadding="1" cellspacing="0" border="0">
<tr><td width="{width}" height="{height}" valign="top">
<div id="advertisement" style="position:absolute; z-index: 1; visibility: visible">
<br><center>
Here your Advertisement ... ! <br>
(tables, images, ... are possible)
</center><br>
</div>
<div id="content" style="position:absolute; z-index: 999; visibility: hidden">
<table cellpadding="1" cellspacing="0" border="0">
  <tr>
    <td bgcolor="#000000">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"{width_height} />
      <param name="movie" value="{media_src}">
      <param name="quality" value="high">
      <param name="play" value="true">
      <param name="scale" value="false">
      <embed src="{media_src}" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"{width_height}></embed></object></td>
  </tr>
</table>
</div>
</td></tr></table>

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline zaisk

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Preloader as advertisement between thumbnail and flash file
« Reply #13 on: November 23, 2005, 10:13:08 PM »
Thanks again, working perfect

Offline zaisk

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Preloader as advertisement between thumbnail and flash file
« Reply #14 on: April 09, 2006, 12:50:57 PM »
I am again here after so long time..

I need the same thing for *.jpg *.gif *.wmw *.avi *.mpg (for all video and pictures files)

When I am changing the same script for other media file, so I get the video starting at the same time when starting showing the advertisement, but just sound goes, video is not showing. But when preloader timer finish when the video pop-up on the top and make a mess. The ads are also showing in pop-up without window not in details page.

Please, I very need that Ads Preloader for  this script.

Very thank you.