Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder
    Join Date
    Feb 2010
    Posts
    104
    Thanks
    5
    Thanked 3 Times in 3 Posts

    php naming variables in function call

    In javascript you can call a function in the method shown below:

    Code:
    animate_JD({
    	objects:        name+'Content	    |'+name+'               |'+name+'           |'+name+'           |'+name,	
    	properties:    "opacity		    |height	                |left                   |top                  |width",
    	start:            "1			    |"+startHeight+"      |"+startLeft+"      |"+startTop+"     |"+startWidth,
    	end:             "0			    |0                         |"+endLeft+"       |"+endTop+"       |0",
    	extension:     "			    |px                        |px                   |px                    |px",
    	interval:        "40			    |20                        |20                   |20                   |20",
    	frames:         "5			    |15                        |15                   |15                   |16",
    	effect:          "speed",
    	wait:            "0			    |0	                        |-1                    |-2                   |-3",
    	onComplete:  "document.getElementById('"+name+"Content').style.display = 'none';||||checkDestroy_JD(\'"+name+"\',\'"+destroy+"\')",
    	});		
    
    function animate_JD(params){
    //stuff here
    }
    So how can you do this in php???

    Thanks

    P.S. sorry can't get the code to align properly....you get the idea though.

    ________________________
    FIGURED IT OUT
    Last edited by semiSkim; 03-13-2010 at 01:07 AM.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •