How to make the page link take the page title - hyperlink

How do I make make Hyperlinks more readable? For example, instead of displaying this:
http://www.sharmsmile.com/show.php?bsort=sharm&subsort=CULTURAL%20TOURS&page=CAIRO%20BY%20PLANE&trip=show
I would rather it just be this: http://www.sharmsmile.com/cairobyplane

Related

(DOORS DXL) Creating title page in Word with different size/color text

I currently have a script that creates an HTML page that shows the differences in scripts that were made since the previous baseline and then saves it as a Word document. Now, what I'd like to do is add a title page with text that is of a different color and size than the main document. This text will also need to be centered to make it look more like the other documents our company makes. Luckily, the title of the document will be the same for all versions, so I'm adding this part of the script to before it adds the differences. However, I'm not sure how to make the text display as a different color and size before adding a "new page" break for the rest of the document. Can somebody help me out with how to add the text and new page to the front of the current document?
Chris

Is it possible to show a formatted message with bold and normal font?

I would like to show a formatted message with bold and normal font. Something like
lili lala lolo
Is it possible to do something like this with messageDLG or similar api ?
This question has somewhat already been answered here. They propose several solution, one of them I like is using a HTML label from jVCL. This component is JvHTLabel.
Using the HTML label, you can easily create a form with that label centered and a class method to create the form, set a caption, set the label text using simple HTML markup, show the form modal until the user click on OK/Cancel button you'll add as well.

One page website: Rewrite URL in address-bar when clicking an anchor-link

I have set up a one-page, horizontal scrolling website with several anchors combined with DIV-id's. The website has five pages side-by-side that automatically render full-page based on the visitors browser-window.
The menu contains seven hyperlinks that address different anchors (div-id's) on the page (for example: http://www.url.com/#partsix). When they are clicked, the visitor will automatically be scrolled to the anchor part of the page. This works fine and really smooth.
The problem i'm dealing with is that, since the page is not being reloaded, the address-bar is not updated. So if a visitor wants to link to a page, or, for example, like the URL with a facebook button, it will be very difficult.
Is there a way to rewrite the address bar with the anchorlink without reloading the page?
EDIT: I have found out that i can user the action onclick="window.location.hash = hash;" on the hyperlinks. This will return the hash of the anchor it is scrolling to in the address bar. Works like a charm. But: my menu plugin does not let me add this action to the hyperlinks. So i wanted to check if i can use javascript to apply this action to all hyperlinks in the same li class. Does anyone know how?
The li class that contains all menu links is 'mc_menu mc_depth_2'

How can I change the title of a dynamic page?

I have a jQuery Mobile app that's just like the dynamic page sample from the jQuery Mobile documentation http://jquerymobile.com/test/docs/pages/dynamic-samples/sample-reuse-page.html.
Everything works fine, but just as in the example I can't get the page titles to change accordingly to the requested page. On the basis of the example: When you click the category Colors in the Categories section, the new page has the title Colors, but when you go back and then select Vehicles, the page title is still Colors. How can I fix this?
I tried $page.attr('data-title', category.name) in the showCategory function but it won't work. Any ideas?
You can also use something like this -
$("title").html(category.name);
I don't see the behaviour you're describing in the example. However, to change the title wouldn't this do the job?
document.title = category.name;

jQuery UI Accordion (or similar) with multiple header lines

I'm trying to show a list of messages to the user where the first two lines from each message are showing and they can click to see more.
So I was thinking the accordion would be an interesting way to do this. The only problem is that I can only show the normal single line header row. Is there a way I can show multiple lines or do I need to look for an alternative control like Kwicks?
Ive just given it a go and you can use a < br > inside of the h3 to give it an extra line, or maybe try setting the wraping attributes for the css if you cant manually put a line break in.
Take a look at http://jsfiddle.net/YY7ML/ for a basic example.
Or maybe I have misunderstood?

Resources