ads panel

Add your suggestions for improving Poker Mavens
PokerMavenDeveloper
Posts: 66
Joined: Fri Feb 24, 2012 5:11 pm

ads panel

Post 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.
Kent Briggs
Site Admin
Posts: 5879
Joined: Wed Mar 19, 2008 8:47 pm

Re: ads panel

Post 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.
PokerMavenDeveloper
Posts: 66
Joined: Fri Feb 24, 2012 5:11 pm

Re: ads panel

Post by PokerMavenDeveloper »

This panel its a DIV or its an element of flash?
Kent Briggs
Site Admin
Posts: 5879
Joined: Wed Mar 19, 2008 8:47 pm

Re: ads panel

Post 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.
Kent Briggs
Site Admin
Posts: 5879
Joined: Wed Mar 19, 2008 8:47 pm

Re: ads panel

Post 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
PokerMavenDeveloper
Posts: 66
Joined: Fri Feb 24, 2012 5:11 pm

Re: ads panel

Post by PokerMavenDeveloper »

Thanks kent, i will try to do something with jquery effects,your example work perfectly.
richard015ar
Posts: 88
Joined: Fri Apr 23, 2010 11:44 am

Re: ads panel

Post by richard015ar »

Thank you! I have been very helpful.
PokerMavenDeveloper
Posts: 66
Joined: Fri Feb 24, 2012 5:11 pm

Re: ads panel

Post 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:
Kent Briggs
Site Admin
Posts: 5879
Joined: Wed Mar 19, 2008 8:47 pm

Re: ads panel

Post 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.
Kent Briggs
Site Admin
Posts: 5879
Joined: Wed Mar 19, 2008 8:47 pm

Re: ads panel

Post 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.
Post Reply