title

Showing text on mouseover - Title element inconsistent, title attribute does nothing

你离开我真会死。 提交于 2019-12-11 08:26:05
问题 I'm trying to do something similar to this (display a bit of text when a user mouses over an element). Here's a snippet of the html my script generates: <svg width="400" height="400"> <rect x="100" y="100" width="40" height="45" fill="darkred"> <title>Some_Text, 50, 20.09%</title> </rect> </svg> When I mouse over my rects, nothing appears, which isn't consistent since text does appear when I mouse over rects in the above link. I also tried changing the title element within rect to a title

JTabbedPane: change tab size when change tab title

半城伤御伤魂 提交于 2019-12-11 07:45:00
问题 I have a a JTabbedPane myTab within my JFrame. Its first tab has a title of "old title". I want to change the title dynamically, so I use this code to set: myTab.setTitleAt(myTab.getSelectedIndex(), "my full new title"); And somehow my new title is longer than my old one. The problem is, the tab size does not change, and it does not display the new title fully, only "my full n...". And if I click on the tab, suddenly the tab can show full new title. I already tried this code too, to set the

Android Dialog with modifiable single line title

人盡茶涼 提交于 2019-12-11 04:38:57
问题 In short, I'm working on a "DurationPickerDialog" that works similarly to how the DatePickerDialog works but works based on the xsd:duration type, so the user specifies the number of years, months, days, etc. I've also implemented a "fuzzy duration" function that gives me durations as a string like "one month ago". I would really like to be able to update the DurationPickerDialog's title in the same manner that the DatePickerDialog's title is updated, but there seems to be a problem. In the

IE option title not working above selected

江枫思渺然 提交于 2019-12-11 04:03:59
问题 IE11 weirdness - options with title attribute only display the tip below the selected option? In this example hover over options b and c and tip shows, but not for a. Select c and b stops showing the tip too??? <select name="sel"> <option value=""></option> <option title="already assigned" value="a" style="background-color:gray;">a</option> <option title="orig selected" value="b" selected>b</option> <option title="already assigned" value="c" style="background-color:gray;">c</option> </select>

javascript: how to remove element on title

不想你离开。 提交于 2019-12-11 03:48:38
问题 As the title, how can I remove a div on the html title using javascript or jquery framework? I know it sounds weird but currently I'm working on a CMS template and the generate title has around the title <title><div id="title">Title of the page</div></title> Any help appreciated 回答1: $("title").text($("<div/>").html($("title").text()).text()); Stores the (inappropriate) HTML text of the original title tag into a temporary div, then puts the plain-text content of the temporary div back into

HTML link title atrribute tooltip internet explorer 8

我的梦境 提交于 2019-12-11 02:58:55
问题 It seems that Internet Explorer 8 does not give a tooltip when a link has a title. This is however W3.org valid and other browsers do give a tooltip. What's the proper way to make sure that iE8 also gives a tooltip with the title on a link? <a href="contact/" title="Contact us for bla">Contact</a> 回答1: It should display the title. The only problem with IE is that it displays alt as titles (but titles are handled correctly) while it should display nothing when there's only an alt value. Do you

jQuery: change fancybox width

◇◆丶佛笑我妖孽 提交于 2019-12-11 02:58:54
问题 I'm showing different types of images on a site. Attached to every image I want to add some text. I have written this text in the title-element in the html document. This text is a few sentences long. What happens now is that the fancybox becomes really narrow (since the picture is quite small) and the text looks really stupid. I've tried to change the width and height values within the fancybox code, but it still doesn't seem to work. I tried to fix it in css too, and I got the title text to

To display the title for the current loaction in map in iphone

血红的双手。 提交于 2019-12-11 02:47:23
问题 I am new to iphone development. I have created map applications and i displayed the cuurent locations and drop a pin to the current location. now i want to display the title and subtitle of the current location when i am clicking the pin. Please help me out. Thanks. 回答1: To display title and subtitle your annotation object you add to map must respond to -title and -subTitle messages (defined in MKAnnotation protocol as optional). Edit: You can also obtain information about given location

Get Websites Title

北战南征 提交于 2019-12-11 01:47:16
问题 I am trying to retrieve the title of a URL for a link. For example get the title of this: <a class="stack" href="http://stackoverflow.com" title="Stack Overflow"> will be generated dynamically from something like this: $('.stack').attr("title", "...."); . Is that possible with javascript or jQuery to retrieve the title of a URL? Thanks alot 回答1: Took a little time to make, but this example allows you download a web page from your web page. Then extract the title from the title tags. <html>

FullCalendar - ümlaut in Week View Title

Deadly 提交于 2019-12-10 23:59:40
问题 Has anyone run into this strange issue? I can't seem to override this formatting in FullCalendar.io. I am simply looking to use a dash ("-") rather than the ümlaut 'W'. Current code is as below: header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' }, lang: 'en', views: { agenda: { minTime: '06:00', maxTime: '19:00' }, week: { titleFormat: 'MMM D YYYY' }, } 回答1: I found you can set the separator yourself like this: titleRangeSeparator: "-" Just add it at the