two banner in same place have a problem is that java script will be cover, so banner just oneline show, In this problem, I thought that we need to find another way to resolve.
I am trying to implement this on my nop1.9 i am kind of novice in all these, please help, i am not able to perform these steps, as my site is already live, please suggest how to go about it..
NopObjectContext.cs (File Modified) <#Include> /// <summary> /// Gets an Banner instance that is used to query, add, modify, and delete objects of the specified entity type. /// </summary> public ObjectSet<Banner> Banners { get { if ((_banners == null)) { _banners = CreateObjectSet<Banner>(); } return _banners; } } private ObjectSet<Banner> _banners; </#Include>
two banner in same place have a problem is that java script will be cover, so banner just oneline show, In this problem, I thought that we need to find another way to resolve.
but now, I still have no idea how to resolve it..
To enable the JavaScript to rotate multiple images, change the following line in file: Modules\Banner.ascx.cs from:
in banners 1.8, the origin code is RegisterClientScriptBlock, I change it to RegisterStartupScript, because I found banner.ascx include magicimage.js behind RegisterClientScriptBlock. and It make browser happen error. QuickStart() can not be find.
so I found banner some time work, some time do not work, so I change it to RegisterStartupScript to make sure banner worked.
I will be change it back to RegisterClientScriptBlock and try it again. thanks a lot. :)