Go Back   CodingForums.com > Web Projects and Services Marketplace > Web Projects > Small projects (quick fixes and changes)

Notices

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-27-2008, 11:30 PM   PM User | #1
13lue
New Coder

 
Join Date: Feb 2008
Posts: 50
Thanks: 3
Thanked 0 Times in 0 Posts
13lue is an unknown quantity at this point
Fix This code for $5

1) Project Details: (be as specific as possible): I want you to fix this code so it would work in IE and firefox. Also The code does not switch the style more then once on firefox with the current state it is in. Adding the .css extension will make it not switch the style at all. I do, however, have the files with the correspondingly names 1.css, 2.css, 3.css in the same directory as 1, 2, 3 if that will help making a working code.
Code:
<head>
<link href="http://www.igotacha.com/myspace/hearts/1" rel="stylesheet" id="css1" type="text/css" />
<script type="text/javascript">

function change(){
document.getElementById('css1').href='http://www.igotacha.com/myspace/hearts/2';
document.getElementById('css1').href='http://www.igotacha.com/myspace/hearts/3';
}
</script>
</head>
<body>
<select id="css1">
<option value="1" onclick="change();">Green N Black Hearts</option>
<option value="2" onclick="change();">Green N Black Hearts2</option>
<option value="3" onclick="change();">Green N Black Hearts3</option>
</select>
</body>
2) Payment Amount: $5

3) Payment method/ details (Paypal, check? Timeline?): Paypal, mail

4) Additional Info (about project or potential bidders):

Last edited by 13lue; 02-27-2008 at 11:34 PM..
13lue is offline   Reply With Quote
Old 02-27-2008, 11:43 PM   PM User | #2
Fumigator
UE Antagonizer


 
Fumigator's Avatar
 
Join Date: Dec 2005
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
Fumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of light
Send a 1, 2 or 3 to the change() function, i.e. onclick="change(1);".

Add an argument to the change() function i.e. change(cssValue) {} and append it to the href assignment, i.e. document.getElementById('css1').href='http://www.igotacha.com/myspace/hearts/' + cssValue;.
__________________
Fumigator is offline   Reply With Quote
Old 02-27-2008, 11:49 PM   PM User | #3
13lue
New Coder

 
Join Date: Feb 2008
Posts: 50
Thanks: 3
Thanked 0 Times in 0 Posts
13lue is an unknown quantity at this point
May i ask that you modify the code? I'm new and what you just said confuses me.
13lue is offline   Reply With Quote
Old 03-05-2008, 12:08 AM   PM User | #4
JygzIsHere
New Coder

 
Join Date: May 2005
Location: Cebu, Philippines
Posts: 46
Thanks: 1
Thanked 10 Times in 10 Posts
JygzIsHere is an unknown quantity at this point
This is what Fumigator meant:

Code:
<head>
<link href="http://www.igotacha.com/myspace/hearts/1" rel="stylesheet" id="css1" type="text/css" />
<script type="text/javascript">

function change(cssValue){
document.getElementById('css1').href='http://www.igotacha.com/myspace/hearts/'+cssValue;
}
</script>
</head>
<body>
<select id="css1">
<option value="1" onclick="change(1);">Green N Black Hearts</option>
<option value="2" onclick="change(2);">Green N Black Hearts2</option>
<option value="3" onclick="change(3);">Green N Black Hearts3</option>
</select>
</body>
JygzIsHere is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 +1. The time now is 12:50 PM.


Advertisement
Log in to turn off these ads.