Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 05-29-2003, 09:48 AM
Steve W. Steve W. is offline
 
Join Date: May 2003
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I started the code in the header and closed it in the footer...

Quote:
Originally Posted by Header Code
<!-- logo and buttons -->
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<body onLoad="MM_preloadImages('{imagesfolder}/head_1_on.jpg','{imagesfolder}/head_2_on.jpg','{imagesfolder}/head_5_on.jpg','{imagesfolder}/head_9_on.jpg','{imagesfolder}/head_10_on.jpg','{imagesfolder}/head_3_on.jpg','{imagesfolder}/head_6_on.jpg','{imagesfolder}/head_7_on.jpg','{imagesfolder}/head_8_on.jpg','{imagesfolder}/head_4_on.jpg')">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="770" align="left"><smallfont><img src="{imagesfolder}/header_logo.jpg" width="423" height="48"></smallfont></td>
<td width="100%" align="center" background="{imagesfolder}/header_title_fill.gif"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td height="33" align="left" background="{imagesfolder}/header_menu_bg.gif"><font face="Verdana, Arial, Helvetica, sans-serif"><smallfont><a href="index.php?s=$session[sessionhash]" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('usercp','','{imagesfold er}/head_1_on.jpg',1)"><img src="{imagesfolder}/head_1_off.jpg" alt="User CP" name="usercp" width="76" height="33" border="0"></a><a href="register.php?s=$session[sessionhash]&action=signup" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('register','','{imagesfo lder}/head_2_on.jpg',1)"><img src="{imagesfolder}/head_2_off.jpg" alt="Register" name="register" width="85" height="33" border="0"></a><a href="calendar.php?s=$session[sessionhash]" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('calender','','{imagesfo lder}/head_5_on.jpg',1)"><img src="{imagesfolder}/head_5_off.jpg" alt="Calender" name="calender" width="93" height="33" border="0"></a><a href="memberlist.php?s=$session[sessionhash]" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('members','','{imagesfol der}/head_9_on.jpg',1)"><img src="{imagesfolder}/head_9_off.jpg" alt="Members" name="members" width="91" height="33" border="0"></a><a href="links.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('links','','{imagesfolde r}/head_10_on.jpg',1)"><img src="{imagesfolder}/head_10_off.jpg" alt="Links" name="links" width="57" height="33" border="0"></a><a href="features.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('features','','{imagesfo lder}/head_3_on.jpg',1)"><img src="{imagesfolder}/head_3_off.jpg" alt="Features" name="features" width="90" height="33" border="0"></a><a href="misc.php?s=$session[sessionhash]&action=faq" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('faq','','{imagesfolder}/head_6_on.jpg',1)"><img src="{imagesfolder}/head_6_off.jpg" alt="FAQ" name="faq" width="44" height="33" border="0"></a><a href="search.php?s=$session[sessionhash]" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('search','','{imagesfold er}/head_7_on.jpg',1)"><img src="{imagesfolder}/head_7_off.jpg" alt="Search" name="search" width="74" height="33" border="0"></a><a href="member.php?s=$session[sessionhash]&action=logout" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('logout','','{imagesfold er}/head_8_on.jpg',1)"><img src="{imagesfolder}/head_8_off.jpg" alt="Logout" name="logout" width="73" height="33" border="0"></a><a href="index.php?s=$session[sessionhash]" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('home','','{imagesfolder }/head_4_on.jpg',1)"><img src="{imagesfolder}/head_4_off.jpg" alt="Head" name="home" width="60" height="33" border="0"></a></smallfont></font></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="770" align="left"><smallfont><img src="{imagesfolder}/header_regular.jpg" width="660" height="38"></smallfont></td>
<td width="100%" align="center" background="{imagesfolder}/wrap_header.gif"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="208" align="left" valign="top" background="{imagesfolder}/wrap_side.gif"><smallfont><img src="{imagesfolder}/side_regular.jpg" width="208" height="403"></smallfont></td>
<td width="100%" align="center" bgcolor="#F4F2F2">
And it's closed in the footer with...

Quote:
Originally Posted by Footer Code
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="208" align="left" valign="top" background="{imagesfolder}/wrap_side.gif"><smallfont><img src="{imagesfolder}/wrap_side.gif" width="208" height="38"></smallfont></td>
<td width="100%" align="center" valign="top" bgcolor="#F4F2F2">
<!-- CONTENT TABLE END -->
<!-- /content area table -->
<normalfont></normalfont>
<p align="center"><smallfont>
<!-- Do not remove this copyright notice -->
Powered by: vBulletin Version $templateversion<br>
Copyright &copy;2000 - 2002, Jelsoft Enterprises Limited.<br>
<b> <a href="$contactuslink">Contact Us</a> - <a href="$homeurl">$hometitle</a>
<!-- - <a href="$privacyurl">Privacy Statement</a> -->
</b><br>
<!-- Do not remove this copyright notice -->
$copyrighttext </smallfont></p>
<p align="center"><smallfont></smallfont></p></td>
</tr>
</table>
</center>
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:07 PM.


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.03150 seconds
  • Memory Usage 2,342KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete