NameSilo

Recoding JavaScript Needing -NP$50

Spacemail by SpaceshipSpacemail by Spaceship
Watch
Status
Not open for further replies.
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)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
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";
 
0
•••
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)
 
Last edited:
0
•••
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; 
	} 
}
 
0
•••
thanks alot.. it works wonders...
 
0
•••
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 :p
 
0
•••
ya, no problem with that...
 
0
•••
Status
Not open for further replies.
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back