DIR Return Create A Forum - Home
---------------------------------------------------------
Create A Forum - Support Forums
HTML https://support.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: General Support
*****************************************************
#Post#: 5480--------------------------------------------------
Re: what is the next step
DIR By: Jaron
Date: August 6, 2012, 2:51 pm
---------------------------------------------------------
--- Code ---
<script type='text/javascript'>
/*
Change Any Image On Page
Created by iFusion
*/
var img_b = new Array();
img_b[img_b.length++] = [
"
HTML http://tnafanforum.com/Smileys/default/smiley.gif"
,
"
HTML http://smfsupport.com/support/Smileys/smfnew/smiley.gif"
]
img_b[img_b.length++] = [
"
HTML http://tnafanforum.com/Smileys/default/wink.gif"
,
"
HTML http://smfsupport.com/support/Smileys/smfnew/wink.gif"
]
img_b[img_b.length++] = [
"
HTML http://tnafanforum.com/Smileys/default/cheesy.gif"
,
"
HTML http://smfsupport.com/support/Smileys/smfnew/cheesy.gif"
]
img_b[img_b.length++] = [
"
HTML http://tnafanforum.com/Smileys/default/grin.gif"
,
"
HTML http://smfsupport.com/support/Smileys/smfnew/grin.gif"
]
img_b[img_b.length++] = [
"
HTML http://tnafanforum.com/Smileys/default/angry.gif"
,
"
HTML http://smfsupport.com/support/Smileys/smfnew/angry.gif"
]
img_b[img_b.length++] = [
"
HTML http://tnafanforum.com/Smileys/default/sad.gif"
,
"
HTML http://smfsupport.com/support/Smileys/smfnew/sad.gif"
]
img_b[img_b.length++] = [
"
HTML http://tnafanforum.com/Smileys/default/shocked.gif"
,
"
HTML http://smfsupport.com/support/Smileys/smfnew/shocked.gif"
]
img_b[img_b.length++] = [
"
HTML http://tnafanforum.com/Smileys/default/cool.gif"
,
"
HTML http://smfsupport.com/support/Smileys/smfnew/cool.gif"
]
img_b[img_b.length++] = [
"
HTML http://tnafanforum.com/Smileys/default/huh.gif"
,
"
HTML http://smfsupport.com/support/Smileys/smfnew/huh.gif"
]
img_b[img_b.length++] = [
"
HTML http://tnafanforum.com/Smileys/default/rolleyes.gif"
,
"
HTML http://smfsupport.com/support/Smileys/smfnew/rolleyes.gif"
]
img_b[img_b.length++] = [
"
HTML http://tnafanforum.com/Smileys/default/tongue.gif"
,
"
HTML http://smfsupport.com/support/Smileys/smfnew/tongue.gif"
]
img_b[img_b.length++] = [
"
HTML http://tnafanforum.com/Smileys/default/lipsrsealed.gif"
,
"
HTML http://smfsupport.com/support/Smileys/smfnew/lipsrsealed.gif"
]
img_b[img_b.length++] = [
"
HTML http://tnafanforum.com/Smileys/default/undecided.gif"
,
"
HTML http://smfsupport.com/support/Smileys/smfnew/undecided.gif"
]
img_b[img_b.length++] = [
"
HTML http://tnafanforum.com/Smileys/default/kiss.gif"
,
"
HTML http://smfsupport.com/support/Smileys/smfnew/kiss.gif"
]
img_b[img_b.length++] = [
"
HTML http://tnafanforum.com/Smileys/default/cry.gif"
,
"
HTML http://smfsupport.com/support/Smileys/smfnew/cry.gif"
]
img_b[img_b.length++] = [
"
HTML http://tnafanforum.com/Smileys/default/embarrassed.gif"
,
"
HTML http://support.createaforum.com/Smileys/smfnew/embarrassed.gif"<br
/>]
var all_images = document.getElementsByTagName('IMG');
for(i=0;i<all_images.length;i++){
for(j=0;j<img_b.length;j++){
if(all_images.src == img_b[j][0]){
all_images.src = img_b[j][1];
}}}
</script>
--- End Code ---
This will work.
#Post#: 5481--------------------------------------------------
Re: what is the next step
DIR By: exoticlanduk
Date: August 6, 2012, 2:56 pm
---------------------------------------------------------
still not working
#Post#: 5482--------------------------------------------------
Re: what is the next step
DIR By: Jaron
Date: August 6, 2012, 4:02 pm
---------------------------------------------------------
Gah. My bad.
--- Code ---
<script
src="
HTML https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
--- End Code ---
Put that in your headers. Sorry. I'm currently sick and am over
looking the simple details today. Lol
#Post#: 5498--------------------------------------------------
Re: what is the next step
DIR By: exoticlanduk
Date: August 7, 2012, 4:39 am
---------------------------------------------------------
Still not working
#Post#: 5500--------------------------------------------------
Re: what is the next step
DIR By: xboi209
Date: August 7, 2012, 8:34 am
---------------------------------------------------------
Copy and paste everything from your headers and footers so i can
see if there's anything wrong
#Post#: 5501--------------------------------------------------
Re: what is the next step
DIR By: exoticlanduk
Date: August 7, 2012, 10:28 am
---------------------------------------------------------
it is the same code as he put up thats all thats in the header
and footer
#Post#: 5502--------------------------------------------------
Re: what is the next step
DIR By: Jaron
Date: August 7, 2012, 11:09 am
---------------------------------------------------------
--- Code ---
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var forumurl = "tnafans";
var img_b = new Array();
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/smiley.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/smiley.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/wink.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/wink.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/cheesy.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/cheesy.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/grin.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/grin.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/angry.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/angry.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/sad.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/sad.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/shocked.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/shocked.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/cool.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/cool.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/huh.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/huh.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/rolleyes.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/rolleyes.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/tongue.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/tongue.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/lipsrsealed.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/lipsrsealed.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/undecided.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/undecided.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/kiss.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/kiss.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/cry.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/cry.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/embarrassed.gif" ,
"
HTML http://support.createaforum.com/Smileys/smfnew/embarrassed.gif"<br
/>]
var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++)
if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
--- End Code ---
#Post#: 5504--------------------------------------------------
Re: what is the next step
DIR By: xboi209
Date: August 7, 2012, 7:30 pm
---------------------------------------------------------
I'm going to confirm that the code itself is broken, the problem
line is:
--- Code ---
a_i.src = img_b[j][0];
--- End Code ---
Console error: Uncaught TypeError: Cannot read property '0' of
undefined
A brave man will rise up and fix this one day...
Fixed
#Post#: 5517--------------------------------------------------
Re: what is the next step
DIR By: exoticlanduk
Date: August 8, 2012, 2:10 pm
---------------------------------------------------------
this code it not working it comes up with the code at the
bo0ttom of the site :/
#Post#: 5518--------------------------------------------------
Re: what is the next step
DIR By: xboi209
Date: August 8, 2012, 7:39 pm
---------------------------------------------------------
I edited Seldom Fail's post already, are you sure you're using
that one?
*****************************************************
Page 3 of 4
DIR Previous Page
DIR Next Page