Page 1 of 2

ads panel

Posted: Tue Feb 28, 2012 11:18 pm
by PokerMavenDeveloper
Hi, its to posible dynamicaly rezise a ads panel, or hide, for example i define a left panel, i want to press a button to hide this panel, or show with some efect.

Re: ads panel

Posted: Tue Feb 28, 2012 11:56 pm
by Kent Briggs
PokerMavenDeveloper wrote:Hi, its to posible dynamicaly rezise a ads panel, or hide, for example i define a left panel, i want to press a button to hide this panel, or show with some efect.
You could probably do it with javascript. The DIV's aren't named so you'd have to access them by their index. I've never tried that, though. It would be a lot easier just to embed the player client into an existing web page using an iframe and then you'd have full control on how the remaining portions of the screen are rendered.

Re: ads panel

Posted: Wed Feb 29, 2012 11:08 am
by PokerMavenDeveloper
This panel its a DIV or its an element of flash?

Re: ads panel

Posted: Wed Feb 29, 2012 11:19 am
by Kent Briggs
PokerMavenDeveloper wrote:This panel its a DIV or its an element of flash?
The flash module is in its own DIV with an ID of "pmflashclient". The ad panels are in their own DIVs surrounding the flash DIV. Use the view page source function in your browser and you can see them all.

Re: ads panel

Posted: Wed Feb 29, 2012 4:30 pm
by Kent Briggs
I did some experimenting and was able to toggle a left side panel with no problem. In the settings below, I don't actually shrink the left side panel, I just expand the flash DIV so it covers the left panel up.

Bottom ad HTML:

Code: Select all

<script>
function Toggle()
{
  var e = document.getElementById("pmflashclient");
  if (e.style.left == "200px") e.style.left = "0px";
  else e.style.left = "200px";
}
</script>

<button onclick="Toggle();">Toggle Stats</button>
Bottom ad size: 25

Left ad HTML:

Code: Select all

Stats Here
Left ad size: 200

Re: ads panel

Posted: Wed Feb 29, 2012 7:30 pm
by PokerMavenDeveloper
Thanks kent, i will try to do something with jquery effects,your example work perfectly.

Re: ads panel

Posted: Wed Feb 29, 2012 9:03 pm
by richard015ar
Thank you! I have been very helpful.

Re: ads panel

Posted: Thu Mar 01, 2012 7:06 am
by PokerMavenDeveloper
kent i think the 200px its a very small amount, with the posibility to expand and hide this panel, a good idea its can to have a more than 200px, for example to put another game in this space like a casino game, rouleta etc, or including a facebook chat or whatever, or more ads only for non premium user, the possibility to hide this spaces add a aggregate value to th plattform, the more used screen size in the worl its 1024x768 i think, with rhe pokr maven full screen with an ads space of 340px, another question its possible the table window and the lobby window are above the ads panel? :mrgreen: :mrgreen: :mrgreen: :mrgreen:

Re: ads panel

Posted: Thu Mar 01, 2012 10:20 am
by Kent Briggs
PokerMavenDeveloper wrote:kent i think the 200px its a very small amount
That was just a proof of concept example showing that the panels could be adjusted at runtime. You would of course size them as appropriate for your own site.

Re: ads panel

Posted: Thu Mar 01, 2012 10:22 am
by Kent Briggs
another question its possible the table window and the lobby window are above the ads panel?
The flash module has an opaque background so nothing underneath will show through.