ForumUp English Language Support Forum Index ForumUp English Language Support
Before asking for support:

*Check the FAQ, Guides and Tutorials
*Use a title in posts that describes your question
*Include your forum's URL
*No PM or Email support!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Welcome!

**ALWAYS include the URL to your forum in every post.**
You cannot register with a web.de or mail.ru email address at this time, due to a massive spam registering attack.
* Read the rules for signatures and avatars
* If you did not get your activation email, look here

* Click here for fast help for your questions.

This forum is also now the support forum for ForumUp.se, ForumUp.com.br, ForumUp.dk and ForumUp.vn, due to lack of Swedish, Portuguese, Danish and Vietnamese speaking staff.

Problem with changing icons

 
Post new topic   Reply to topic    ForumUp English Language Support Forum Index -> Creating and Configuring your forum
View previous topic :: View next topic  
Author Message
addicted
Member


Joined: 16 Sep 2009
Posts: 3

PostPosted: Wed Sep 16, 2009 6:00 am    Post subject: Problem with changing icons Reply with quote

i've tried both codes below, with 2 different images, but still no changing. subsilver theme.
Only registered users can see links on this forum!
Register or Login on forum!



Code:
<script>
function iconswap()
   {   
   var index = 0;

   var imageorig01 = "http://wos.forumup.ro/templates/subSilver/images/common/whosonline.gif";
   var imageorig02 = "http://wos.forumup.ro/templates/subSilver/images/common/folder_new_big.gif";
   var imageorig03 = "http://wos.forumup.ro/templates/subSilver/images/common/folder_big.gif";
   var imageorig04 = "http://wos.forumup.ro/templates/subSilver/images/common/folder_locked_big.gif";

   var imagerplc01 = "http://img186.imageshack.us/img186/5618/postnonew.gif";
   var imagerplc02 = "http://img186.imageshack.us/img186/5618/postnonew.gif";
   var imagerplc03 = "http://img186.imageshack.us/img186/5618/postnonew.gif";
   var imagerplc04 = "http://img186.imageshack.us/img186/5618/postnonew.gif";

   for(index=0; index<document.images.length; index++)
     {
     if(document.images[index].src == imageorig01) document.images[index].src = imagerplc01;
     if(document.images[index].src == imageorig02) document.images[index].src = imagerplc02;
     if(document.images[index].src == imageorig03) document.images[index].src = imagerplc03;
     if(document.images[index].src == imageorig04) document.images[index].src = imagerplc04;
     }
   }
</script>
<body onload="iconswap();"></body>


Code:
<!--
var index = 0;
var newbig = "http://wos.forumup.ro/templates/subSilver/images/whosonline.gif";
var newbig2 = "http://wos.forumup.ro/templates/subSilver/images/folder_big.gif";
var newbig3 = "http://wos.forumup.ro/templates/subSilver/images/folder_locked_big.gif";
var newbig4 = "http://wos.forumup.ro/templates/subSilver/images/whosonline.gif";

var mynewbig = "http://img186.imageshack.us/img186/5618/postnonew.gif";
var mynewbig2 = "http://img186.imageshack.us/img186/5618/postnonew.gif";
var mynewbig3 = "http://img186.imageshack.us/img186/5618/postnonew.gif";
var mynewbig4 = "http://img186.imageshack.us/img186/5618/postnonew.gif";

function chicone() {
for(index=0; index<document.images.length; index++){
if(document.images[index].src != newbig) continue;
else {
document.images[index].height = **;
document.images[index].width =**;
document.images[index].src = mynewbig;
}
}
for(index=0; index<document.images.length; index++){
if(document.images[index].src != newbig2) continue;
else {
document.images[index].height = **;
document.images[index].width = **;
document.images[index].src = mynewbig2;
}
}
for(index=0; index<document.images.length; index++){
if(document.images[index].src != newbig3) continue;
else {
document.images[index].height = **;
document.images[index].width = **;
document.images[index].src = mynewbig3;
}
}
for(index=0; index<document.images.length; index++){
if(document.images[index].src != newbig4) continue;
else {
document.images[index].height = **;
document.images[index].width = **;
document.images[index].src = mynewbig4[color=red];[/color]
}
}
}

window.setTimeout("chicone()", 1000);

-->
Back to top
View user's profile Send private message Yahoo Messenger
gg'ssimon
ForumUp World-Wide Admin
<b>ForumUp World-Wide Admin</b>


Joined: 13 Nov 2005
Posts: 8658
Location: USA (ForumUp World-wide Admin )

PostPosted: Wed Sep 16, 2009 3:49 pm    Post subject: Reply with quote

The images don't have the same exact path as the same given in the tutorial.

For subSilver whosonline it is:
Only registered users can see links on this forum!
Register or Login on forum!



So omit the path part in the URL of your code that says "common".

Right click on the images, then the little popup window, select "properties". Then you will see the actual url of an image.

_________________
Margaret /gg'ssimon~ForumUp World-Wide Administrator

Only registered users can see links on this forum!
Register or Login on forum!

Back to top
View user's profile Send private message Send e-mail Visit poster's website
addicted
Member


Joined: 16 Sep 2009
Posts: 3

PostPosted: Wed Sep 16, 2009 4:54 pm    Post subject: Reply with quote

Yep, this time worked. Thank you for the support.
Back to top
View user's profile Send private message Yahoo Messenger
gg'ssimon
ForumUp World-Wide Admin
<b>ForumUp World-Wide Admin</b>


Joined: 13 Nov 2005
Posts: 8658
Location: USA (ForumUp World-wide Admin )

PostPosted: Wed Sep 16, 2009 5:00 pm    Post subject: Reply with quote

You are welcome.

Since you know Romanian, would you be willing to help other users on the Romanian forum for questions you know the answer to?

_________________
Margaret /gg'ssimon~ForumUp World-Wide Administrator

Only registered users can see links on this forum!
Register or Login on forum!

Back to top
View user's profile Send private message Send e-mail Visit poster's website
addicted
Member


Joined: 16 Sep 2009
Posts: 3

PostPosted: Wed Sep 16, 2009 5:28 pm    Post subject: Reply with quote

Sure, i can do that.
Back to top
View user's profile Send private message Yahoo Messenger
gg'ssimon
ForumUp World-Wide Admin
<b>ForumUp World-Wide Admin</b>


Joined: 13 Nov 2005
Posts: 8658
Location: USA (ForumUp World-wide Admin )

PostPosted: Wed Sep 16, 2009 6:04 pm    Post subject: Reply with quote

Thanks! Very Happy

_________________
Margaret /gg'ssimon~ForumUp World-Wide Administrator

Only registered users can see links on this forum!
Register or Login on forum!

Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    ForumUp English Language Support Forum Index -> Creating and Configuring your forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


View posts since last visit / View your posts


Powered by phpBB © 2001, 2005 phpBB Group

Powered by forumup.com free forum, create your free forum!
Created by Raulken of Hyarbor S.r.l.
TOS & Privacy.

Page generation time: 0.058