| | |||||
| ||||||||
| Web Development Wanted Requests for websites, templates, custom programming, logos or graphics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Oct 2005 Location: 1°88′N, 7°95′E
Posts: 1,388
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Recoding JavaScript Needing -NP$50 hi guys... i need some help here. Refer to http://getprox.info/solutions.html Any way to make it when people click the product name it will jump up to "Information of our Products" as when I click APET NEO Dryer at the bottom I will not realise the product information has appeared on top. Currently, the script i am using a simple Javascript Image Gallery... by some A-4 or Atech site... I am wondering if onclick function can be change so that it link back to the top, something like when i click a bookmark etv.. ????: NamePros.com http://www.namepros.com/web-development-wanted/360528-recoding-javascript-needing-np-50-a.html thanks, pls help me... (if not recommand me a simple alternative)
__________________ What's a good blog ? Find out here [+++] [http://treoo.com]- S'pore Local Gadget Store® - Now Online For Sales : | Ads Development Site [neatad.com] -HOT | |
| |
| | #2 (permalink) |
| Traveller Join Date: Mar 2007 Location: Yet another city
Posts: 1,419
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | put: <a name="prodinfo"></a> Above your product information header Then in your showPic() javascript function, before the return statement, put: location.href = "solutions.html#prodinfo";
__________________ NameCooler.com |
| |
| | THREAD STARTER #3 (permalink) |
| Senior Member Join Date: Oct 2005 Location: 1°88′N, 7°95′E
Posts: 1,388
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | ok, so what does the resultant look like is it like this <a onclick="location.href = "solutions.html#atop";return showPic(this)" .....> ? if this is so, it doesn't work... the picture alone will load instant of (those txt and pic combination)
__________________ What's a good blog ? Find out here [+++] [http://treoo.com]- S'pore Local Gadget Store® - Now Online For Sales : | Ads Development Site [neatad.com] -HOT |
Last edited by rome2ng; 08-11-2007 at 10:34 AM.
|
| |
| | #4 (permalink) |
| Traveller Join Date: Mar 2007 Location: Yet another city
Posts: 1,419
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I was suggesting you change the contents of the showpic() function. Code: function showPic (whichpic) {
if (document.getElementById) {
document.getElementById('placeholder').src = whichpic.href;
if (whichpic.title) {
document.getElementById('desc').childNodes[0].nodeValue = whichpic.title;
} else {
document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
}
location.href = 'solutions.html#prodinfo'; /* this is the new line of code */
return false;
} else {
return true;
}
}
__________________ NameCooler.com |
| |
| | THREAD STARTER #5 (permalink) |
| Senior Member Join Date: Oct 2005 Location: 1°88′N, 7°95′E
Posts: 1,388
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | thanks alot.. it works wonders...
__________________ What's a good blog ? Find out here [+++] [http://treoo.com]- S'pore Local Gadget Store® - Now Online For Sales : | Ads Development Site [neatad.com] -HOT | |
| |
| | #6 (permalink) |
| Traveller Join Date: Mar 2007 Location: Yet another city
Posts: 1,419
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | glad to be able to help! ![]() *cough* I believe you mentioned 50 NP$, and I like the point you make in your sig about it being just a click
__________________ NameCooler.com |
| |
| | THREAD STARTER #7 (permalink) |
| Senior Member Join Date: Oct 2005 Location: 1°88′N, 7°95′E
Posts: 1,388
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | ya, no problem with that...
__________________ What's a good blog ? Find out here [+++] [http://treoo.com]- S'pore Local Gadget Store® - Now Online For Sales : | Ads Development Site [neatad.com] -HOT | |
| |