I have a piece of javascript form alexa.com.
When I place this tag anywhere in the body (for example somewhere in a table), it works just fine. But the problem is, that I don't know how I can change the url dynamically.Code:<script type='text/javascript' language='JavaScript' src='http://xslt.alexa.com/site_stats/js/s/a?url=codeguru.com'></script>
I know which url to show in the page_load, and I tried the next:
This works, but the image produced by the javascript is placed on top of the page.Code:string url = Request.QueryString["url"]; string script = string.Format("<script type='text/javascript' language='JavaScript' src='http://xslt.alexa.com/site_stats/js/s/a?url={0}'></script>", url); Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "script", script, false);
How can I change this and place the image not on top of the page?




Reply With Quote