Jump to content

[SOLVED] Button/Link Help


williwaw

Recommended Posts

Hi All,

Is there any way to turn the 'cancel_reply' link into a 'cancel_reply' button instead?

echo '<div id="cancel_reply" style="display:none;"><a href="javascript:void(0)" onclick="movecfm(null,0,1,null);" style="color: #996633;">' . $this->options['cancel_reply'] . '</a></div>';

Thanks for your time in checking this out.

Cheers,

Williwaw

Link to comment
https://forums.phpfreaks.com/topic/130505-solved-buttonlink-help/
Share on other sites

i would leave it as a link and just style it to look like a button

 

http://www.456bereastreet.com/lab/bulletproof-shrinkwrapping-buttons/

 

http://sophie-g.net/jobs/css/e_buttons.htm

 

either works fine 

 

uhm boltz its currently an link so i assume this isnt in a form and avoided using inputs

I tried a couple different ways with the <button> tag to no avail.

echo '<button href="javascript:void(0)" onclick="movecfm(null,0,1,null);" id="cancel_reply">' . $this->options['cancel_reply'] . '</button>';

and this

echo '<div id="cancel_reply" style="display:none;"><code href="javascript:void(0)" onclick="movecfm(null,0,1,null);">' . $this->options['cancel_reply'] . '</code></div>';

 

I used to be so much better at this before web2.0 with plugins and  other peoples code(OPC)....when I used to have to do it all myself.  Now my brain has just gone to plugin lala land:)

 

Thanks for the help everyone.

 

Cheers,

Williwaw

BoltZ,

Can you elaborate on this a bit.  The part that I am getting stumped on is where to put the href, onclick and the $this.

 

Instead of

 

<input type="text" ...>

 

do <input type="button" or "submit"

 

Thanks for your help.

 

Cheers,

Williwaw

Do what dropfaith suggested and use <button

I did do that as in thread:

I tried a couple different ways with the <button> tag to no avail.

echo '<button href="javascript:void(0)" onclick="movecfm(null,0,1,null);" id="cancel_reply">' . $this->options['cancel_reply'] . '</button>';

and this

echo '<div id="cancel_reply" style="display:none;"><code href="javascript:void(0)" onclick="movecfm(null,0,1,null);">' . $this->options['cancel_reply'] . '</code></div>';

 

I used to be so much better at this before web2.0 with plugins and  other peoples code(OPC)....when I used to have to do it all myself.  Now my brain has just gone to plugin lala land:)

 

Thanks for the help everyone.

 

Cheers,

Williwaw

 

Do you have any suggestions on the <button> tag  BoltZ?

 

Cheers,

Williwaw

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.