How to write this function??

Source: Internet
Author: User
This post was last edited by u013177281 on 2013-12-16 20:03:59

 
  


Input function parameter guanggaotiao1 the function that appears above the effect

$guanggaotutiao 1 is the big picture!

How to write this function??


Reply to discussion (solution)

$guanggaotutiao 1=$_module["Guanggaotiao1"];function Guanggao ($url) {if ($guanggaotutiao 1) {    $BJJS = ' background: URL ('. $guanggaotutiao 1. ') ';      } else{    $bjjs = ';} return $BJJS;} Guangao ($guanggaotutiao 1);

$guanggaotutiao 1=$_module["Guanggaotiao1"];function Guanggao ($url) {if ($guanggaotutiao 1) {    $BJJS = ' background: URL ('. $guanggaotutiao 1. ') ';      } else{    $bjjs = ';} return $BJJS;} Guangao ($guanggaotutiao 1);
No, $guanggaotutiao 1, this will become


$guanggaotutiao 1=$_module["Guanggaotiao1"];function Guanggao ($url) {if ($guanggaotutiao 1) {    $BJJS = ' background: URL ('. $guanggaotutiao 1. ') ';      } else{    $bjjs = ';} return $BJJS;} Guangao ($guanggaotutiao 1);
No, $guanggaotutiao 1, this will become
$guanggaotutiao 1=$_module["Guanggaotiao1"]; Is this the $guanggaotutiao1 that gets the change?
Then call Guanggao (); this function!

 
  

No function required
$BJJS = $_module["Guanggaotiao1"]? ' Background:url ('. $_module[' Guanggaotiao1 "]. ') ': ';

Must be written as a function.
function background ($url) {
return $url? "Background:url ($url)": ";
}
Call
$BJJS = background ($_module["GUANGGAOTIAO1"]);

The sticker rate is 0, I go

0 of the knot rate there is no need to talk to, the least respect do not know

Warning TWO people upstairs! No personal attacks.
Landlord's registration date: December 16, 2013
To send this post, the rate of natural knot is 0

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.