开发者

Control images based on previously visited page history

开发者 https://www.devze.com 2023-03-26 15:17 出处:网络
I am implementing Google\'s map and markers in my site.Each marker references a page that the user can view.Is it possible to use the visited pages info of the page in JS/jQuery?

I am implementing Google's map and markers in my site. Each marker references a page that the user can view. Is it possible to use the visited pages info of the page in JS/jQuery?

The data I get for the markers comes from ajax postbacks. When the da开发者_如何转开发ta comes back, I plot the markers.

I would like to use a marker of a different color if the underlying page has been visited.

Any suggestions?

If it matters, it is an aspx page.


You need to save the url of the visited pages in cookie or local storage or database then when making your ajax request assign a different marker image to ones that link to those urls

0

精彩评论

暂无评论...
验证码 换一张
取 消