param

flash版本的视频调用代码

不想你离开。 提交于 2019-12-15 09:36:52
<div style="text-align: center;"> <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" height="480" id="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640"> <param name="movie" value="http://www.mtzyyzx.com/images/Flvplayer.swf" /> <param name="quality" value="high" /> <param name="allowFullScreen" value="true" /> <param name="FlashVars" value="vcastr_file=视频地址" /> <embed allowfullscreen="true" flashvars="vcastr_file=视频地址" height="480" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="http://www.mtzyyzx.com

动态代理简书

ぃ、小莉子 提交于 2019-12-14 11:27:54
什么是动态代理呢? 动态代理其实是一种方便运行时候动态的处理代理方法的调用机制。 假如现在有一个生产者类IProducter,类内有两个方法: public void saleProducter(float money){ System.out.println("卖东西,拿钱"+money); } 和 public void afterServce(float money){ System.out.println("提供售后服务,拿钱"+money);}现在厂家为了减少运营成本通过代理商来代理销售和售后服务, 在增加了代理商后则必然要为代理商分一部分利润,那么原本的销售方法则必须要进行修改,假如要将售价的20%分给代理商 那就需要将原方法做如下修改: public void saleProducter(float money){ System.out.println("卖东西,拿钱"+money0.8); } 那如果此时不想修改原方法又想实现该功能应该怎么办呢? 答案是:使用动态代理,在使用该方法时对该方法进行一个加强(即修改利润),那动态代理是如何实现对方法的加强而不修改原本的方法呢? 通过过滤方法如果谁使用了该方法在该类**加载到内存时**修改类的方法(随用随创建,随用随加载,随用随加强),从而达在不修改原类的情况下对类中的方法进行加强。 那有人可能要问了

验证码总结

╄→尐↘猪︶ㄣ 提交于 2019-12-14 01:14:19
1.验证码封装 <?php /** * 验证码封装 * @param int $type 类型1数字 2字母 3数字或字母 * @param int $leng 长度 * @param int $pixel 干扰点 * @param int $line 干扰线段 * @param int $arc 干扰圆弧 * @param int $snow 干扰雪花 * @param int $width 宽 * @param int $height 高 */ function createVerCode($type = 1, $leng = 4, $pixel = 0, $line = 0, $arc = 0, $snow = 0, $width = 100, $height = 20) { //创建画布 $image = imagecreatetruecolor($width, $height);//创建画布,返回资源 //创建颜色 $white = imagecolorallocate($image, 255, 255, 255); //绘制填充矩形,用特定颜色填充画布 imagefilledrectangle($image, 0, 0, $width, $height, $white); if ($leng <= 3) $leng = 3; if ($leng >= 6) $leng

Using PDO for an insert and the_geom

前提是你 提交于 2019-12-13 20:51:56
问题 I'm switching my code to PDO for increased security. My insert works until I add a special column that create spatial data. See below for the standard insert that works, and 2nd below for what is not working. $sql = "INSERT INTO sites_tbl (sitename, the_geom) VALUES ('$_POST[sitename]', st_geomfromtext('POINT($geomstring)',27700))"; The geomstring = a number formatted 000000 000000 Using PDO the same insert looks something like (below) this works if I just want to insert the sitename, but not

EL表达式中的param和paramValues对象

随声附和 提交于 2019-12-13 06:44:06
在JSP页面中经常需要获取客户端传递的请求参数,为此,EL表达式提供了param和paramValues两个隐式对象, param对象用于获取请求参数的某个值,它是Map类型,与request.getParamter()方法相同,在使用EL获取参数时,如果参数不存在,返回的是空字符串,而不是null,param语法格式如下:${param.num} 如果一个请求参数有多个值,可以使用paramValues对象来获取请求参数的所有值,该对象用于返回请求参数所有值组成的数组,如果要获取某个请求参数的第一个值,则用${paramValues.num[0]} 上代码,感受下 <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <html> <head></head> <body style="text-align: center;"> <form action="${pageContext.request.contextPath}/param.jsp"> num1:<input type="text" name="num1"><br /> num2:<input type="text" name="num"><br /> num3:<input type="text"

How do I get selected value from drop down box in Perl CGI

时间秒杀一切 提交于 2019-12-13 06:02:51
问题 I am populating the drop down menu from database. And when I submit the form I am getting empty string in selected option. Here's my code any help will be appreciated. I have selected the first option as default any help. print "<br>Name: <select>"; while ( my ($name) = fetchrow_array() ) { if ($name eq "Somethinge") { print "<option value=\"$name\" selected>" . $name . "</option>\n"; }else { print "<option value=\"$name\">" . $name . "</option>\n"; } } print "</select>"; I am getting the

XSLT transform without input XML with saxon parse

徘徊边缘 提交于 2019-12-13 02:27:58
问题 Original question was here, now case slightly modified with saxon. I have following xsl tranformation: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://saxon.sf.net/"> <xsl:output method="xml" indent="yes" /> <xsl:param name="products"> <products author="Jesper"> <product id="p1"> <name>Delta</name> <price>800</price> <stock>4</stock> <country>Denmark</country> </product> <product id="p2"> <name>Golf<

Doxygen - Create custom command

吃可爱长大的小学妹 提交于 2019-12-13 01:48:58
问题 I think my question is basically the same as this one, but it didn't get a good answer: Create new custom command that will add to a section in Doxygen I pretty much want to do the same thing, I think. I want to completely duplicate the exact functionality of the @param option, except to give it the heading "Options" instead of "Parameters". I want the arguments to be the same (data type, variable name, and description) and want them to look all the same and everything. Literally, the only

Linux

a 夏天 提交于 2019-12-12 20:45:52
Linux操作命令 一、系统监控 1、free命令 free 命令能够显示系统中物理上的空闲和已用内存,还有交换内存,同时,也能显示被内核使用的缓冲和缓存 语法:free [param] 1 param可以为: -b:以Byte为单位显示内存使用情况; -k:以KB为单位显示内存使用情况; -m:以MB为单位显示内存使用情况; -o:不显示缓冲区调节列; -s<间隔秒数>:持续观察内存使用状况; -t:显示内存总和列; -V:显示版本信息。 在这里插入图片描述 Men:表示物理内存统计 total:表示物理内存总数(total=used+free) used:表示系统分配给缓存使用的数量(这里的缓存包括buffer和cache) free:表示未分配的物理内存总数 shared:表示共享内存 buffers:系统分配但未被使用的buffers 数量。 cached:系统分配但未被使用的cache 数量。 -/+ buffers/cache:表示物理内存的缓存统计 (-buffers/cache) 内存数: (指的第一部分Mem行中的used – buffers – cached) (+buffers/cache) 内存数: (指的第一部分Mem行中的free + buffers + cached) (-buffers/cache)表示真正使用的内存数, (+buffers

Duilib的多级菜单实现(网易云信版本)

吃可爱长大的小学妹 提交于 2019-12-12 19:32:48
完整代码见: https://github.com/netease-im/NIM_Duilib_Framework/tree/master/ui_components/menu 核心代码: ui_menu.h #ifndef __UIMENU_H__ #define __UIMENU_H__ #pragma once namespace nim_comp { using namespace ui; enum MenuAlignment { eMenuAlignment_Left = 1 << 1, eMenuAlignment_Top = 1 << 2, eMenuAlignment_Right = 1 << 3, eMenuAlignment_Bottom = 1 << 4, eMenuAlignment_Intelligent = 1 <<5 //智能的防止被遮蔽 }; enum MenuCloseType { eMenuCloseThis, //适用于关闭当前级别的菜单窗口,如鼠标移入时 eMenuCloseAll //关闭所有菜单窗口,如失去焦点时 }; //增加关闭事件的传递。 /* 点击某一菜单,获取该菜单窗口句柄,通知该菜单窗口可以关闭子菜单项了。 即某子菜单项目的父窗口等于该窗口,该子菜单关闭。 由于菜单的父子关系,会自动关闭其所有子孙菜单窗口