ads panel
-
- Posts: 66
- Joined: Fri Feb 24, 2012 5:11 pm
ads panel
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.
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: ads panel
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 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.
-
- Posts: 66
- Joined: Fri Feb 24, 2012 5:11 pm
Re: ads panel
This panel its a DIV or its an element of flash?
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: ads panel
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.PokerMavenDeveloper wrote:This panel its a DIV or its an element of flash?
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: ads panel
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:
Bottom ad size: 25
Left ad HTML:
Left ad size: 200
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>
Left ad HTML:
Code: Select all
Stats Here
-
- Posts: 66
- Joined: Fri Feb 24, 2012 5:11 pm
Re: ads panel
Thanks kent, i will try to do something with jquery effects,your example work perfectly.
-
- Posts: 88
- Joined: Fri Apr 23, 2010 11:44 am
Re: ads panel
Thank you! I have been very helpful.
-
- Posts: 66
- Joined: Fri Feb 24, 2012 5:11 pm
Re: ads panel
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?
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: ads panel
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.PokerMavenDeveloper wrote:kent i think the 200px its a very small amount
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: ads panel
The flash module has an opaque background so nothing underneath will show through.another question its possible the table window and the lobby window are above the ads panel?