Need some help in codes

Discussion in 'HTML & Website Design' started by assam_siddibapa, Sep 29, 2008.

  1. #1
    Hi ,
    Well i m not an expert in code but i know a bit ...

    I have got a script which is a flash player script .
    What it does is it gives a link , on which if clicked it opens a popup window in which the flash is played

    what i wannt to do is i want the flash to work on the webstie it self .

    Do u you have any idea how to do it

    Hope this code is the code which must be changed
    f ($game['type'] != 'extlink') {
    	if ($game['width'] <= $maxnopopwidth) {
    		echo $game['code']."<br /><br />";
    		cache_output("do_event('gameplay');");
    
    		if(!is_cache()){ 
    			do_event("gameplay");
    		}
    	} else {
    		$link = get_play_link("id="._sp($params[1]));
    		$width = $game['width'];
    		$height = $game['height'];
    		$link = "javascript:popup('".$link."', ".$width.", ".$height.")";
    		echo "<b><a href=\"".$link."\" class='darklink'>- " . language("clickhere", true) . " ".$game['name']." " . language("newwindow", true) . " -</a></b>";
    	}
    } else {
    	if (get_game_config("name=frameextlinks")==1) {
    		$target = "";
    	} else {
    		$target = "target='_blank'";
    	}
    
    	echo "<br /><b><a href=\"".get_play_link("id="._sp($game['id']))."\" class='darklink' ".$target.">- " . language("clickhere", true) ." ".$game['name']." -</a></b><br /><br />";
    }
    Code (markup):

     
    assam_siddibapa, Sep 29, 2008 IP
  2. Jordan656

    Jordan656 Peon

    Messages:
    399
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    As far as I understand you want to embed some flash into your website,

    Why not use the following embed code:
    <object width="550" height="400">
    <param name="movie" value="somefilename.swf">
    <embed src="somefilename.swf" width="550" height="400">
    </embed>
    </object> 
    
    Code (markup):
     
    Jordan656, Sep 30, 2008 IP
  3. jack456

    jack456 Peon

    Messages:
    90
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    why are you mess up with this code. go for google. it provide you so much scripts for your flash player.

    thanks
     
    jack456, Sep 30, 2008 IP
  4. assam_siddibapa

    assam_siddibapa Banned

    Messages:
    108
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Actually its a gamescript from gamesitescript .

    Can some one help me with the script which i gave ...
    I dont know html so i askyou ppl to help
     
    assam_siddibapa, Sep 30, 2008 IP