vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   how to make a button.. link to another page.. (https://vborg.vbsupport.ru/showthread.php?t=205845)

Winterworks 02-18-2009 09:53 PM

how to make a button.. link to another page..
 
I want to make a button exactly like...

https://vborg.vbsupport.ru/

A default button really, but I want it to say "Download Version 1.0.0", and link to "../freeversiondownload/"

Can someone show me how to do this? Or give me a code for it?

I just don't know how to make a button..

UKBusinessLive 02-18-2009 10:22 PM

Quote:

Originally Posted by Winterworks (Post 1748489)
I want to make a button exactly like...

http://img3.imageshack.us/img3/2470/teeheetu8.jpg

A default button really, but I want it to say "Download Version 1.0.0", and link to "../freeversiondownload/"

Can someone show me how to do this? Or give me a code for it?

I just don't know how to make a button..

Here you go my little friend :D

Code:

<DIV ALIGN=CENTER>
<br>
<form>
<input type="button" value="Download Version 1.0.0"
onClick="location.href='http://www.ukbusinesslive.co.uk/forum'">
</form>
</br>
</DIV>


Winterworks 02-18-2009 10:25 PM

Oh, thank you so much. =) now..

If I upload a .zip file, and link to it, will it automatically start a download when you visit it?

UKBusinessLive 02-18-2009 10:27 PM

Quote:

Originally Posted by Winterworks (Post 1748523)
Oh, thank you so much. =) now..

If I upload a .zip file, and link to it, will it automatically start a download when you visit it?

If you upload a zip file to your server and call it via the button then it should ask if you want to open / save etc, you know what i mean ;)

Winterworks 02-18-2009 10:32 PM

Ah, thank you mate, exactly what I wanted to know. =)

Dismounted 02-19-2009 04:14 AM

You may consider just using an image or a text link, as that button requires the user to have JS enabled.

Vaupell 02-19-2009 05:32 AM

1 Attachment(s)
or with css,
A "fake" botton, just coloring around it with css
to make the link appear as a botton ;)

HTML Code:

a.botton {
  border: 2px outset;
  padding: 1px;
  text-decoration: none;
  font-size: 11px;
  background:#D4D0C8;
  color: #000000;
  line-height: normal;
  padding-bottom: 2px;
  padding-top: 2px;
  padding-left: 1em;
  padding-right: 1em;
}

HTML Code:

<a href="http://www.eeeee.ddddd" class="botton">"add new link"</a>
Note : "" is not needed around the actual botton text.

Attachment 95154


All times are GMT. The time now is 03:28 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02904 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete