I'm using WowSlider(http://wowslider.com/) image slider for my website (ASP.net MVC). When I use simple text in Img title it shows the title correctly
<img src="~/Content/data1/images/01_____.jpg"
title="my image title" alt="my image title" id="wows1_0" />
but when I want to get the title from my resource file (.resx) it just read the first word!
<img src="~/Content/data1/images/01_____.jpg"
[email protected] [email protected] id="wows1_0" />
What should I do to make it read the complete title?
my complete index code is as bellow:
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<!-- Start Slider HEAD section -->
<link rel="stylesheet" type="text/css" href="~/Content/engine1/style.css"
/>
<script type="text/javascript" src="~/Content/engine1/jquery.js"></script>
<!-- End Slider HEAD section -->
<link href="~/Content/StyleSheet.css" rel="stylesheet" />
<!-- Start Slider BODY section -->
<div id="wowslider-container1">
<div class="ws_images">
<ul>
<li ><img src="~/Content/data1/images/01_____.jpg"
[email protected]
[email protected] id="wows1_0" /></li>
<li><img src="~/Content/data1/images/02_________.jpg"
[email protected]
[email protected] id="wows1_1" /></li>
<li><img src="~/Content/data1/images/03______.jpg"
[email protected]
[email protected] id="wows1_2" /></li>
<li><img src="~/Content/data1/images/04______.jpg"
[email protected]
[email protected] id="wows1_3" /></li>
<li><img src="~/Content/data1/images/05____.jpg"
[email protected]
[email protected] id="wows1_4" /></li>
<li><img src="~/Content/data1/images/06_______.jpg"
[email protected]
[email protected] id="wows1_5" /></li>
<li><img src="~/Content/data1/images/07_____.jpg"
[email protected]
[email protected] id="wows1_6" /></li>
<li><img src="~/Content/data1/images/08_______.jpg"
[email protected]
[email protected] id="wows1_7" /></li>
<li><img src="~/Content/data1/images/09_____.jpg"
[email protected]
[email protected] id="wows1_8" /></li>
<li><img src="~/Content/data1/images/10_____.jpg"
[email protected]
[email protected] id="wows1_9" /></li>
</ul>
</div>
<div class="ws_shadow"></div>
</div>
<script type="text/javascript" src="~/Content/engine1/wowslider.js">
</script>
<script type="text/javascript" src="~/Content/engine1/script.js"></script>
<!-- End Slider BODY section -->
Put quotes around your
title
attribute value if it has spaces in it, else the value will just be the first word.title="@Resources.HomeIndexRes.SliderImg01"