好吧,我正在尝试将图像转换为CakePHP中完成的应用程序页面上的按钮.这是第一个问题.我不能将图像用作按钮.之后我想要一个Javascript弹出一个窗口的动作在它...... !!!我怎么能做到这一点......任何人都可以告诉我该怎么做.. !!!
rio*_*era 11
对于图像按钮,我建议您使用此代码:
<input type="image" src="<?php echo $html->image('image.gif'); ?> name="image" width="60" height="60">
Run Code Online (Sandbox Code Playgroud)
要在内部打开窗口,就像这样:
<?php echo $html->link('yourlinkdescription', '#', array('onclick'=>"var openWin = window.open('".$html->url(array('action'=>'youraction')."', '_blank', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,resizable=1,width=500,height=500'); return false;")); ?>
Run Code Online (Sandbox Code Playgroud)