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

Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2006, 10:21 AM
phonexpo phonexpo is offline
 
Join Date: Sep 2005
Location: Dublin
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Jim's DHTML Menu V5.7

Here is a DHTML Menu I found on the net last night. It seems good. Now how Do install it?
Attached Files
File Type: zip jimmenu57.zip (45.6 KB, 22 views)
Reply With Quote
  #2  
Old 07-06-2006, 06:33 PM
phonexpo phonexpo is offline
 
Join Date: Sep 2005
Location: Dublin
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I now have this running on my forum. Can someone please tell me how I can center the code on my screen?
Reply With Quote
  #3  
Old 07-07-2006, 12:25 AM
Guest210212002
Guest
 
Posts: n/a
Default

Just wrap whatever code calls it in div tags.

eg:

Code:
<div align="center">

(the dhtml code)

</div>
If you can post the template section that you put it in, I can be a lot more specific. In viewing your source, most likely right before:

Code:
//***********************************************
* Jim's DHTML Menu v5.7- ? Jim Salyer (jsalyer@REMOVETHISmchsi.com)
* Visit Dynamic Drive: http://www.dynamicdrive.com for script and instructions
* This notice must stay intact for use
***********************************************/
For the opener, and right after:

Code:
</script>
<script type="text/javascript" src="xpodhtmlconfig.js"></script>
For the closer.
Reply With Quote
  #4  
Old 07-07-2006, 12:48 AM
phonexpo phonexpo is offline
 
Join Date: Sep 2005
Location: Dublin
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Chris-777 thanks for the advice but I still don't know where the center code goes to make it work.

There's two files, the HTML file that goes into my forum header;

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>

<title>Test Page</title>

<script type="text/javascript" src="includes/browser.js">

/***********************************************
* Jim's DHTML Menu v5.7- ? Jim Salyer (jsalyer@REMOVETHISmchsi.com)
* Visit Dynamic Drive: http://www.dynamicdrive.com for script and instructions
* This notice must stay intact for use
***********************************************/

</script>
<script type="text/javascript" src="xpodhtmlconfig.js"></script>

</head>

<body onload="init()">

</body>

</html>
This then displays the xpodhtmlconfig.js file in my root, here is the xpodhtmlconfig.js code;
Code:
function init()
{

	//Main Menu items:
	menus[0] = new menu(18, "horizontal", 0, 0, 0, 0, "5271a8", "6085c5", "Verdana", 8, 
             "", "", "white", "white", 1, "gray", 0, "", false, true, true, false, 12, true, 0, 0, "white");
	menus[0].addItem("http://www.phonexpo.net", "", 50, "center", "Home", 0);
	menus[0].addItem("#", "", 55, "center", "System", 1);
	menus[0].addItem("#", "", 95, "center", "Competitions", 2);
	menus[0].addItem("#", "", 55, "center", "Sevices", 3);
	menus[0].addItem("#", "", 65, "center", "The Shop", 4);
	menus[0].addItem("#", "", 65, "center", "Networks", 5);
	menus[0].addItem("#", "", 80, "center", "Mobile Help", 6);
	menus[0].addItem("#", "", 85, "center", "Other Topics", 7);
	menus[0].addItem("#", "", 95, "center", "Customer Area", 8);
             menus[0].addItem("http://phonexpo.net/forumdisplay.php?f=62", "", 95, "center", "Special Offers", 0);

//Sub Menu for 1st Main Menu Item ("system"):
	menus[1] = new menu(118, "vertical", 18, 0, 0, 0, "5271a8", "6085c5", "Verdana", 8, "", 
		"", "white", "white", 1, "gray", 2, 62, false, true, false, true, 6, true, 0, 0, "white");
	menus[1].addItem("http://phonexpo.net/forumdisplay.php?f=51", "", 18, "left", "Feedback", 0);
	menus[1].addItem("http://phonexpo.net/forumdisplay.php?f=55", "", 18, "left", "Newbies/FAQ", 0);
	menus[1].addItem("http://phonexpo.net/forumdisplay.php?f=37", "", 18, "left", "Recycle Bin", 0);
	menus[1].addItem("http://phonexpo.net/forumdisplay.php?f=69", "", 18, "left", "Test Section", 0);
	menus[1].addItem("http://phonexpo.net/forumdisplay.php?f=68", "", 18, "left", "Forum Updates", 0);

//Sub Menu for 2nd Main Menu Item ("comps"):
	menus[2] = new menu(180, "vertical", 18, 0, 0, 0, "5271a8", "6085c5", "Verdana", 8, "", 
		"", "white", "white", 1, "gray", 2, "", false, true, false, false, 0, true, 0, 0, "white");
	menus[2].addItem("http://phonexpo.net/forumdisplay.php?f=38", "", 18, "left", "Want to win a mobile phone?", 0);

//Sub Menu for 3rd Main Menu Item ("Sevices"):
	menus[3] = new menu(160, "vertical", 18, 0, 0, 0, "5271a8", "6085c5", "Verdana", 8, "", "", "white", "white", 1, "gray", 2, ">>", false, true, false, false, 0, true, 0, 0, "white");
	menus[3].addItem("http://phonexpo.net/forumdisplay.php?f=70", "", 18, "left", "General Questions", 0);
	menus[3].addItem("http://phonexpo.net/forumdisplay.php?f=62", "", 18, "left", "Special Offers", 0);
	menus[3].addItem("http://phonexpo.net/forumdisplay.php?f=33", "", 18, "left", "Unlocking Codes", 0);
	menus[3].addItem("http://phonexpo.net/forumdisplay.php?f=15", "", 18, "left", "Manual Unlocking", 0);
             menus[3].addItem("http://phonexpo.net/forumdisplay.php?f=16", "", 18, "left", "Repair Service", 0);
             menus[3].addItem("http://phonexpo.net/forumdisplay.php?f=59", "", 18, "left", "Customer Feedback", 0);

//Sub Menu for 4th Main Menu Item ("shop"):
	menus[4] = new menu(145, "vertical", 18, 0, 0, 0, "5271a8", "6085c5", "Verdana", 8, "", "", "white", "white", 1, "gray", 2, ">>", false, true, false, false, 0, true, 0, 0, "white");
             
	menus[4].addItem("http://phonexpo.net/forumdisplay.php?f=72", "", 18, "left", "Feedback System", 0);
	menus[4].addItem("http://phonexpo.net/forumdisplay.php?f=41", "", 18, "left", "FS Mobiles", 0);
	menus[4].addItem("http://phonexpo.net/forumdisplay.php?f=42", "", 18, "left", "Wtd Mobiles", 0);
	menus[4].addItem("http://phonexpo.net/forumdisplay.php?f=61", "", 18, "left", "Accessories", 0);

//Sub Menu for 5th Main Menu Item ("net"):
	menus[5] = new menu(105, "vertical", 18, 0, 0, 0, "5271a8", "6085c5", "Verdana", 8, "", 
		"", "white", "white", 1, "gray", 2, 62, false, true, false, true, 6, true, 0, 0, "white");
	menus[5].addItem("http://phonexpo.net/forumdisplay.php?f=17", "", 18, "left", "3", 0);
	menus[5].addItem("http://phonexpo.net/forumdisplay.php?f=18", "", 18, "left", "Meteor", 0);
	menus[5].addItem("http://phonexpo.net/forumdisplay.php?f=19", "", 18, "left", "o2", 0);
	menus[5].addItem("http://phonexpo.net/forumdisplay.php?f=20", "", 18, "left", "Vodafone", 0);
	menus[5].addItem("http://phonexpo.net/forumdisplay.php?f=21", "", 18, "left", "No Network", 0);

//Sub Menu for 6th Main Menu Item ("m help"):
	menus[6] = new menu(120, "vertical", 18, 0, 0, 0, "5271a8", "6085c5", "Verdana", 8, "", "", "white", "white", 1, "gray", 2, ">>", false, true, false, false, 0, true, 0, 0, "white");
	menus[6].addItem("http://phonexpo.net/forumdisplay.php?f=22", "", 18, "left", "Nokia", 0);
	menus[6].addItem("http://phonexpo.net/forumdisplay.php?f=23", "", 18, "left", "Motorola", 0);
	menus[6].addItem("http://phonexpo.net/forumdisplay.php?f=24", "", 18, "left", "Sony Ericsson", 0);
	menus[6].addItem("http://phonexpo.net/forumdisplay.php?f=25", "", 18, "left", "BenQ-Siemens", 0);
             menus[6].addItem("http://phonexpo.net/forumdisplay.php?f=26", "", 18, "left", "Panasonic", 0);
             menus[6].addItem("http://phonexpo.net/forumdisplay.php?f=27", "", 18, "left", "Safran/Sagem", 0);
	menus[6].addItem("http://phonexpo.net/forumdisplay.php?f=28", "", 18, "left", "Sharp", 0);
	menus[6].addItem("http://phonexpo.net/forumdisplay.php?f=45", "", 18, "left", "LG", 0);
	menus[6].addItem("http://phonexpo.net/forumdisplay.php?f=46", "", 18, "left", "NEC", 0);
             menus[6].addItem("http://phonexpo.net/forumdisplay.php?f=63", "", 18, "left", "Samsung", 0);
             menus[6].addItem("http://phonexpo.net/forumdisplay.php?f=71", "", 18, "left", "Others", 0);

//Sub Menu for 7th Main Menu Item ("other"):
	menus[7] = new menu(150, "vertical", 18, 0, 0, 0, "5271a8", "6085c5", "Verdana", 8, "", "", "white", "white", 1, "gray", 2, ">>", false, true, false, false, 0, true, 0, 0, "white");
	menus[7].addItem("http://phonexpo.net/forumdisplay.php?f=67", "", 18, "left", "Top Stories", 0);
	menus[7].addItem("http://phonexpo.net/forumdisplay.php?f=66", "", 18, "left", "Mobile Reviews", 0);
	menus[7].addItem("http://phonexpo.net/forumdisplay.php?f=29", "", 18, "left", "Other Phones/News", 0);
	menus[7].addItem("http://phonexpo.net/forumdisplay.php?f=30", "", 18, "left", "Price Check", 0);
             menus[7].addItem("http://phonexpo.net/forumdisplay.php?f=36", "", 18, "left", "ComReg", 0);
             menus[7].addItem("http://phonexpo.net/forumdisplay.php?f=31", "", 18, "left", "Downloads/Ringtones", 0);

//Sub Menu for 8th Main Menu Item ("other"):
	menus[8] = new menu(150, "vertical", 18, 0, 0, 0, "5271a8", "6085c5", "Verdana", 8, "", "", "white", "white", 1, "gray", 2, ">>", false, true, false, false, 0, true, 0, 0, "white");
	menus[8].addItem("http://phonexpo.net/forumdisplay.php?f=74", "", 18, "left", "Support Area", 0);
	menus[8].addItem("http://phonexpo.net/forumdisplay.php?f=75", "", 18, "left", "Suggestions", 0);
	menus[8].addItem("http://phonexpo.net/forumdisplay.php?f=79", "", 18, "left", "Computers/Internet", 0);
	menus[8].addItem("http://phonexpo.net/forumdisplay.php?f=77", "", 18, "left", "Flame", 0);


} //OUTER CLOSING BRACKET. EVERYTHING ADDED MUST BE ABOVE THIS LINE.
Reply With Quote
  #5  
Old 07-07-2006, 01:01 AM
Guest210212002
Guest
 
Posts: n/a
Default

First one. Try it here:

Code:
<div align="center">
<script type="text/javascript" src="xpodhtmlconfig.js"></script>
</div>
If that doesn't work:

Code:
<div align="center">
<script type="text/javascript" src="includes/browser.js">

/***********************************************
* Jim's DHTML Menu v5.7- ? Jim Salyer (jsalyer@REMOVETHISmchsi.com)
* Visit Dynamic Drive: http://www.dynamicdrive.com for script and instructions
* This notice must stay intact for use
***********************************************/

</script>
<script type="text/javascript" src="xpodhtmlconfig.js"></script>
</div>
Reply With Quote
  #6  
Old 07-07-2006, 01:09 AM
phonexpo phonexpo is offline
 
Join Date: Sep 2005
Location: Dublin
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

, I get error on page with;

Code:
<div align="center">
<script type="text/javascript" src="xpodhtmlconfig.js"></script>
</div>
And it's still not centered with;

Code:
<div align="center">
<script type="text/javascript" src="includes/browser.js">

/***********************************************
* Jim's DHTML Menu v5.7- ? Jim Salyer (jsalyer@REMOVETHISmchsi.com)
* Visit Dynamic Drive: http://www.dynamicdrive.com for script and instructions
* This notice must stay intact for use
***********************************************/

</script>
<script type="text/javascript" src="xpodhtmlconfig.js"></script>
</div>
Reply With Quote
Reply


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 12:27 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04079 seconds
  • Memory Usage 2,250KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (9)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (4)postbit_onlinestatus
  • (6)postbit_wrapper
  • (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_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
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete