Sommaire Paramétrable javascript popup

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Sommaire Paramétrable javascript popup
Donovan
CZ Active Member
 Codezwiz Site Donator
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 posts per day
Posts: 160
Points: 9,216
   
I have been using Sommaire Paramétrable for years and have installed it on numerous sites. I recently put an mp3 player on my site and have the link in my menu. I called it JukeBox. The problem is it uses javascript to popup the "remote control" of the mp3 player so you can browse the site while playing music from the remote. The popup removes all IE controls so you have a clean popup window.

Unfortunatly this need javascript coding for it to work and I don't know of a way to incorporate this into Sommaire Paramétrable. If I just have an external link it pops up a full IE page, and not the clean popup I want.

See it here at my site at the bottom.
[ Register or login to view links on this board. ]

Open the remote and notice all IE control are disabled. If you open in my menu under Jukebox it is obviously different.

A normal block I could do this.

[code]$content  .= "  <div align=\"left\"><a href=\"javascript:openpopup()\">JukeBox</a></div>";[/code]


And this for the popup.

?>
<!--### Change The Remote Control .html file name ##--->
<xxxx>
function openpopup(){
var popurl="flam_player.html"
winpops=window.open(popurl,"","width=320,height=330,")
}
</xxxx >
<!--## Remote Control Java Ends by PHPNuke-Downloads.com ##--->
<?php


Any idea I would be greatly apprieciative.

-Donovan

p.s. I was on the developers site but got nailed by Sentinal for the javascript tags in my post. Nukesentinal banned me. So if marcoledingue reads this he know.


Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
I'm not sure what the block uses but something like this should work.


if ($title == "JukeBox") {
    $content .= "  <div align=\"left\"><a href=\"javascript:openpopup()\">JukeBox</a></div>";
}




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: Sommaire Paramétrable javascript popup
Donovan
CZ Active Member
 Codezwiz Site Donator
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 posts per day
Posts: 160
Points: 9,216
   
Mmm I'd rather not hack into Sommaire Paramétrable. Is it possibe lto get what i want by adding to the external link I have in my menu? This is the file that is linked.

flam_player.html

and here is the code.


<!-- ********************************************************************************************************** -->
<!-- *  FLAM PLAYER BLOCK                                                                                     * -->
<!-- ********************************************************************************************************** -->
<style type="text/css" media="all">.fplink0910522{display:none;}</style>
<div class="fplink0910522"><a href="http://www.dualbase.com" target="_blank" title="Dualbase:Webdesign at Montreal:home of FLAM player">Dualbase :: Montreal webdesign :: the home of FLAM player</a><br><a href="http://www.flamplayer.com" target="_blank" title="Flam Player:Macromedia Flash based mp3 player:home of FLAM player">Flam Player :: Macromedia Flash mp3 player :: the home of FLAM player</a><br></div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
   width="300"
   height="315">
      <param name=movie value="http://www.3rd-infantry-division.net/modules/FLAM_PLAYER/flam-player.swf">
      <param name=flashVars value="fp_root_url=http://www.3rd-infantry-division.net/modules/FLAM_PLAYER/&ovr_color=0x33293D&ovr_langage=en&ovr_playlist=1940s&ovr_author=all&ovr_order=date_music&ovr_order_direction=DESC&ovr_autoplay=1&ovr_loop_playlist=1&ovr_loop_tracks=0&ovr_shuffle=0">
      <param name=menu value=false>
      <param name=quality value=best>
      <param name=wmode value=transparent>
      <param name=bgcolor value=#383838>
                 
   <embed src="http://www.3rd-infantry-division.net/modules/FLAM_PLAYER/flam-player.swf"
      flashVars="fp_root_url=http://www.3rd-infantry-division.net/modules/FLAM_PLAYER/&ovr_color=0x33293D&ovr_langage=en&ovr_playlist=1940s&ovr_author=all&ovr_order=date_music&ovr_order_direction=DESC&ovr_autoplay=1&ovr_loop_playlist=1&ovr_loop_tracks=0&ovr_shuffle=0"
      menu=false
      quality=best
      wmode=transparent
      bgcolor=#383838
      width="300"
      height="315"
      type="application/x-shockwave-flash"
      pluginspage="http://www.macromedia.com/go/getflashplayer">
   </embed>
</object>
<!-- ********************************************************************************************************** -->
<!-- *  FLAM PLAYER BLOCK END                                                                                 * -->
<!-- ********************************************************************************************************** -->



Back to top Reply with quote
#4   re: Sommaire Paramétrable javascript popup
webshark
PayPal Donation
CZ Moderator
 Codezwiz Site Donator
webshark has been a member for over 20 year's 20 Year Member
turkey.gif
Age: 56
Gender: Male
Website:
Status: Offline
Joined: Mar 23, 2004
0.08 posts per day
Posts: 643
Points: 57,200
   
hello

PMed you Marc's mail addy




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum