| |||||||
| Web Development Wanted Requests for websites, templates, custom programming, logos or graphics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Your Friendly ModŽ Forum Moderator | 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.. 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 | 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";
__________________ Internet.geek.nz NameCooler.com Unlimited Domain Name Web Hosting Travel Money Rates |
| |
| | #3 (permalink) |
| Your Friendly ModŽ Forum Moderator | 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 09:34 AM. |
| |
| | #4 (permalink) |
| Traveller | 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;
}
}
__________________ Internet.geek.nz NameCooler.com Unlimited Domain Name Web Hosting Travel Money Rates |
| |
| | #5 (permalink) |
| Your Friendly ModŽ Forum Moderator | 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 | 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
__________________ Internet.geek.nz NameCooler.com Unlimited Domain Name Web Hosting Travel Money Rates |
| |
| | #7 (permalink) |
| Your Friendly ModŽ Forum Moderator | 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 | |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |