Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Need Help with Javascripts in Header Insert Details »»
Need Help with Javascripts in Header Insert
Version: , by Littlebit Littlebit is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 11-22-2002 Last Update: Never Installs: 0
 
No support by the author.

I'm having trouble getting my hacked header insert to work properly. Could someone give me a hand cleaning up my code if I pm my insert for a look? :nervous:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-11-2002, 07:35 PM
Littlebit's Avatar
Littlebit Littlebit is offline
 
Join Date: Nov 2001
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My problem is in my header insert, this is being ignored with latest IE for macOSX:
PHP Code:
A:linkA:visitedA:active {
    
COLOR: {linkcolor};
}
A:hover {
    
COLOR: {hovercolor};
}
#cat A:link, #cat A:visited, #cat A:active {
    
COLOR: {categoryfontcolor};
    
TEXT-DECORATIONnone;
}
#cat A:hover {
    
COLOR: {categoryfontcolor};
    
TEXT-DECORATIONunderline;
}
#ltlink A:link, #ltlink A:visited, #ltlink A:active {
    
COLOR: {linkcolor};
    
TEXT-DECORATIONnone;
}
#ltlink A:hover {
    
COLOR: {hovercolor};
    
TEXT-DECORATIONunderline;

Reply With Quote
  #3  
Old 12-11-2002, 07:39 PM
Littlebit's Avatar
Littlebit Littlebit is offline
 
Join Date: Nov 2001
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've a script from the store hack 2.0 and the scripts for my rollovers in toplinks. Is there anything that could be producing an error that would effect certain browsers only that someone can see? :chinese: If anyone can take a look, here is what I have in the header insert:
PHP Code:
<meta http-equiv="MSThemeCompatible" content="Yes">
<
script LANGUAGE="javascript">
<!--
function 
showwin(name,size
{
attrbts size ",resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes"
window.open(name"Photos"attrbts);
}                                       
//-->
</script>
<
style type="text/css">
BODY {
    
SCROLLBAR-BASE-COLOR: {categorybackcolor};
    
SCROLLBAR-ARROW-COLOR: {categoryfontcolor};
}
SELECT {
    
FONT-FAMILYVerdana,Arial,Helvetica,sans-serif;
    
FONT-SIZE11px;
    
COLOR#000000;
    
BACKGROUND-COLOR#CFCFCF
}
TEXTAREA, .bginput {
    
FONT-SIZE12px;
    
FONT-FAMILYVerdana,Arial,Helvetica,sans-serif;
    
COLOR#000000;
    
BACKGROUND-COLOR#CFCFCF
}
A:linkA:visitedA:active {
    
COLOR: {linkcolor};
}
A:hover {
    
COLOR: {hovercolor};
}
#cat A:link, #cat A:visited, #cat A:active {
    
COLOR: {categoryfontcolor};
    
TEXT-DECORATIONnone;
}
#cat A:hover {
    
COLOR: {categoryfontcolor};
    
TEXT-DECORATIONunderline;
}
#ltlink A:link, #ltlink A:visited, #ltlink A:active {
    
COLOR: {linkcolor};
    
TEXT-DECORATIONnone;
}
#ltlink A:hover {
    
COLOR: {hovercolor};
    
TEXT-DECORATIONunderline;
}
.
thtcolor {
    
COLOR: {tableheadtextcolor};
}
</
style>
<
script type="text/javascript">
<!--
function 
newImage(arg) {
if (
document.images) {
rslt = new Image();
rslt.src arg;
return 
rslt;
}
}
function 
changeImages() {
if (
document.images && (preloadFlag == true)) {
for (var 
i=0i<changeImages.arguments.lengthi+=2) {
document[changeImages.arguments[i]].src changeImages.arguments[i+1];
}
}
}
// -->
</script>
<
script type="text/javascript"><!--
var 
preloadFlag false;
function 
preloadImages() {
if (
document.images) {
over_RolloverImage newImage(/*URL*/'{imagesfolder}/red_home.gif');
over_RolloverImage2 newImage(/*URL*/'{imagesfolder}/red_swag.gif');
over_RolloverImage3 newImage(/*URL*/'{imagesfolder}/red_calendar.gif');
over_RolloverImage4 newImage(/*URL*/'{imagesfolder}/red_members.gif');
over_RolloverImage5 newImage(/*URL*/'{imagesfolder}/red_faq.gif');
over_RolloverImage6 newImage(/*URL*/'{imagesfolder}/top_search.gif');
over_RolloverImage7 newImage(/*URL*/'{imagesfolder}/red_logout.gif');
preloadFlag true;
}
}
// --></script>
<body onload="preloadImages();">
$headnewpm 
Reply With Quote
  #4  
Old 12-12-2002, 01:35 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For starters I know the body tag should be removed and you need to place: onload="preloadImages();" into the <body> replacement for the style(s).
Reply With Quote
  #5  
Old 12-12-2002, 02:23 PM
Littlebit's Avatar
Littlebit Littlebit is offline
 
Join Date: Nov 2001
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NTLDR,
Thank you for making me feel not so alone anymore
I've taken you suggestion and made it so the body tag looks like this:
<body bgcolor="#000000" text="#ffffff" id="all" leftmargin="1" onload="preloadImages();"
I removed body onload part from header insert.
The rollovers function great and refresh is certainly quicker (thank you)...but in IE, its still default colors for links. ANything else that could be causing this? Do I need to give a TYPE to the LANGUAGE for the first javascript (Store hack one)?
Reply With Quote
  #6  
Old 12-12-2002, 02:25 PM
Littlebit's Avatar
Littlebit Littlebit is offline
 
Join Date: Nov 2001
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's the header insert now:
PHP Code:
<meta http-equiv="MSThemeCompatible" content="Yes">
<
script LANGUAGE="javascript">
<!--
function 
showwin(name,size
{
attrbts size ",resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes"
window.open(name"Photos"attrbts);
}                                       
//-->
</script>
<
style type="text/css">
BODY {
    
SCROLLBAR-BASE-COLOR: {categorybackcolor};
    
SCROLLBAR-ARROW-COLOR: {categoryfontcolor};
}
SELECT {
    
FONT-FAMILYVerdana,Arial,Helvetica,sans-serif;
    
FONT-SIZE11px;
    
COLOR#000000;
    
BACKGROUND-COLOR#CFCFCF
}
TEXTAREA, .bginput {
    
FONT-SIZE12px;
    
FONT-FAMILYVerdana,Arial,Helvetica,sans-serif;
    
COLOR#000000;
    
BACKGROUND-COLOR#CFCFCF
}
A:linkA:visitedA:active {
    
COLOR: {linkcolor};
}
A:hover {
    
COLOR: {hovercolor};
}
#cat A:link, #cat A:visited, #cat A:active {
    
COLOR: {categoryfontcolor};
    
TEXT-DECORATIONnone;
}
#cat A:hover {
    
COLOR: {categoryfontcolor};
    
TEXT-DECORATIONunderline;
}
#ltlink A:link, #ltlink A:visited, #ltlink A:active {
    
COLOR: {linkcolor};
    
TEXT-DECORATIONnone;
}
#ltlink A:hover {
    
COLOR: {hovercolor};
    
TEXT-DECORATIONunderline;
}
.
thtcolor {
    
COLOR: {tableheadtextcolor};
}
</
style>
<
script type="text/javascript">
<!--
function 
newImage(arg) {
if (
document.images) {
rslt = new Image();
rslt.src arg;
return 
rslt;
}
}
function 
changeImages() {
if (
document.images && (preloadFlag == true)) {
for (var 
i=0i<changeImages.arguments.lengthi+=2) {
document[changeImages.arguments[i]].src changeImages.arguments[i+1];
}
}
}
// -->
</script>
<
script type="text/javascript"><!--
var 
preloadFlag false;
function 
preloadImages() {
if (
document.images) {
over_RolloverImage newImage(/*URL*/'{imagesfolder}/red_home.gif');
over_RolloverImage2 newImage(/*URL*/'{imagesfolder}/red_swag.gif');
over_RolloverImage3 newImage(/*URL*/'{imagesfolder}/red_calendar.gif');
over_RolloverImage4 newImage(/*URL*/'{imagesfolder}/red_members.gif');
over_RolloverImage5 newImage(/*URL*/'{imagesfolder}/red_faq.gif');
over_RolloverImage6 newImage(/*URL*/'{imagesfolder}/top_search.gif');
over_RolloverImage7 newImage(/*URL*/'{imagesfolder}/red_logout.gif');
preloadFlag true;
}
}
// --></script>
$headnewpm 
Reply With Quote
  #7  
Old 12-12-2002, 02:57 PM
Littlebit's Avatar
Littlebit Littlebit is offline
 
Join Date: Nov 2001
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just noticed my body tag had some stuff missing! Here's my body tag now:
PHP Code:
<body bgcolor="#000000" text="#ffffff" id="all" leftmargin="10" topmargin="10" marginwidth="10" marginheight="10" link="#ffffff" vlink="#ffffff" alink="#ffffff"onload="preloadImages();"
Now the links aren't going to default, just the hover color isn't working. I feel like I'm getting closer. Talking to myself ... no laughing
Reply With Quote
  #8  
Old 12-12-2002, 03:09 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the body tag alink should be alink="#000000" to match the value in the CSS
Reply With Quote
  #9  
Old 12-12-2002, 03:22 PM
Littlebit's Avatar
Littlebit Littlebit is offline
 
Join Date: Nov 2001
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I changed it , but the hover still won't work in IE. Works in Netscape (go figure)
I really really want to tahnk you again for just responding...let alone fixing my stuff
Reply With Quote
  #10  
Old 12-12-2002, 03:36 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it IE in Windows? Or is it the Mac/UNIX version of it? The A:hover part of the CSS works fine for me on my boards.
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 10:53 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.04784 seconds
  • Memory Usage 2,360KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete