Linking to a page and extending a theme with Javascript

I want to link a page that contains multiple support topics. When a user clicks on a link while on an external site, the theme should be expanded as soon as the user arrives at the support page.

Example:

I link to this page

http://www.nintendo.de/NOE/de_DE/support/nintendo_ds_lite_159_142.html

      

Topic I want to be open on arrival

javascript:fadeNAppearDiv('box_3_9277');

      

(First topic in FAQ)

0


source to share


2 answers


Nice idea, but I don't see the question ... :-)

The way I have seen on some sites like deviantART is to use the sharp anchoring link: myURL.com/foo/page.html#TopicToExpand



JS can parse the current url and get the anchor, then do whatever you need to do to highlight / navigate to the desired location.

0


source


It is not clear if you are maintaining the target site (where the div will open) or not. If you don't have access to the code for that page, then there is no way to call a javascript function on it. If you can modify this page, you can do as @PhiLho suggests and modifies the url you use to tell the DIV to open and have an onLoad handler that parses the url and opens the corresponding DIV.



+1


source







All Articles