SMF For Free Support Forum
Signup For Free Forum
October 11, 2008, 07:39:45 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [Request] 2 requests  (Read 253 times)
0 Members and 1 Guest are viewing this topic.
HunterGold
SMF For Free Newbie
*
Offline Offline

Posts: 5


View Profile
« on: July 04, 2008, 03:02:31 am »

Go to top of page code.
&
Alert code
Logged
Agent Moose
Moderator
*****
Offline Offline

Posts: 640


Do not PM me for Code Support or Request


View Profile
« Reply #1 on: July 04, 2008, 07:09:30 am »

There is a Jump to top of page code, but I can't seem to find it  Huh

And, what kind of alert code are you looking for?
Logged

SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/center]
Tino
SMF For Free Newbie
*
Offline Offline

Posts: 12


View Profile
« Reply #2 on: July 04, 2008, 09:43:39 am »

I don't know what you mean by "alert code" exactly, but I think I have an idea. Just a button you click on and then shows a message. That's easy.

Quote
<html>
<head>
<script type="text/javascript">
function disp_alert()
{
alert("Text you want to be displayed in the box here")
}
</script>
</head>

<body>
<form>
<center><input type="button" onclick="disp_alert()" value="Text you want to appear on the button here"></center>
</form>
</body>

Edit what's in red to what you want to appear in the alert box (the box that appears when you click the button). Edit what's in blue to the text you want to be on the button.

Example:

Quote
<html>
<head>
<script type="text/javascript">
function disp_alert()
{
alert("This is an alert box!")
}
</script>
</head>

<body>
<form>
<center><input type="button" onclick="disp_alert()" value="Click here for an alert box!"></center>
</form>
</body>

Preview

Of course, this is very basic, but I guess I can make a more complicated one if necessary, I think.
Logged
simply sibyl
Global Moderator
*
Offline Offline

Posts: 8444



View Profile WWW
« Reply #3 on: July 04, 2008, 11:00:03 am »

Go to top of page code.


To make a go up link:

Header:   <a name="#top"></a>
Footer:    <a href="#top">Go Up</a>
You can change  "Go Up" to whatever you wish.


To do it with an image that you click and it takes them to the top of the forum:

Header:  <a name="#top"></a>
Footer:   <a href="#top"><img src="YOUR IMAGE URL" border="0"></a>


To do it using a tab at the bottom of the forum:

Header:  <a name="#top"></a>
Footer: 
 
Code:
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="right">
 <table cellpadding="0" cellspacing="0" border="0" style=" margin-right:  10px; position: relative; top: -14px;">
<tr>
<td class="maintab_first"> </td>
<td class="maintab_back"><a href="#top">Go UP</a></td>
<td class="maintab_last"> </td>
</tr>
</table>
</td>
</tr>
</table>
<br />
Logged



Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.273 seconds with 17 queries.